Get claimable balance for a wallet
curl --request GET \
--url https://app.crown-brlv.com/api/v0/wallets/{wallet-address}/claimsimport requests
url = "https://app.crown-brlv.com/api/v0/wallets/{wallet-address}/claims"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.crown-brlv.com/api/v0/wallets/{wallet-address}/claims', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.crown-brlv.com/api/v0/wallets/{wallet-address}/claims",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.crown-brlv.com/api/v0/wallets/{wallet-address}/claims"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.crown-brlv.com/api/v0/wallets/{wallet-address}/claims")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.crown-brlv.com/api/v0/wallets/{wallet-address}/claims")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"available-balance": "350.50"
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}Claims
Get Wallet Claimable Balance
Returns the balance that can be claimed from reward certificates held by a given wallet address
GET
/
api
/
v0
/
wallets
/
{wallet-address}
/
claims
Get claimable balance for a wallet
curl --request GET \
--url https://app.crown-brlv.com/api/v0/wallets/{wallet-address}/claimsimport requests
url = "https://app.crown-brlv.com/api/v0/wallets/{wallet-address}/claims"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.crown-brlv.com/api/v0/wallets/{wallet-address}/claims', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.crown-brlv.com/api/v0/wallets/{wallet-address}/claims",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.crown-brlv.com/api/v0/wallets/{wallet-address}/claims"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.crown-brlv.com/api/v0/wallets/{wallet-address}/claims")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.crown-brlv.com/api/v0/wallets/{wallet-address}/claims")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"available-balance": "350.50"
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}You’re viewing v0, which is deprecated. Endpoints may change or be removed.
Switch to v1 (Latest) →⌘I