Custody Wallet
Get Total Custody Wallet Balances
Get aggregated balances across all custody wallets for all supported cryptocurrencies
GET
/
payment
/
api
/
v1
/
custody-wallet
/
total-balances
Get Total Custody Wallet Balances
curl --request GET \
--url https://api.carbnconnect.com/payment/api/v1/custody-wallet/total-balances \
--header 'x-api-key: <api-key>'import requests
url = "https://api.carbnconnect.com/payment/api/v1/custody-wallet/total-balances"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.carbnconnect.com/payment/api/v1/custody-wallet/total-balances', 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://api.carbnconnect.com/payment/api/v1/custody-wallet/total-balances",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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://api.carbnconnect.com/payment/api/v1/custody-wallet/total-balances"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.carbnconnect.com/payment/api/v1/custody-wallet/total-balances")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.carbnconnect.com/payment/api/v1/custody-wallet/total-balances")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"balance": 0,
"crypto": "eurc",
"contract_address": "HzwqbKZw8HxMN6bF2yFZNrht3c2iXXzpKcFu7uBEDKtr"
},
{
"balance": 0,
"crypto": "pyusd",
"contract_address": "2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo"
},
{
"balance": 0,
"crypto": "usdb",
"contract_address": "ENL66PGy8d8j5KNqLtCcg4uidDUac5ibt45wbjH9REzB"
},
{
"balance": 0.11,
"crypto": "usdc",
"contract_address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
}
]Authorizations
API key for authentication. Must be included in the x-api-key header.
Response
Total balances retrieved successfully
Example:
[
{
"balance": 0,
"crypto": "eurc",
"contract_address": "HzwqbKZw8HxMN6bF2yFZNrht3c2iXXzpKcFu7uBEDKtr"
},
{
"balance": 0,
"crypto": "pyusd",
"contract_address": "2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo"
},
{
"balance": 0,
"crypto": "usdb",
"contract_address": "ENL66PGy8d8j5KNqLtCcg4uidDUac5ibt45wbjH9REzB"
},
{
"balance": 0.11,
"crypto": "usdc",
"contract_address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
}
]
Previous
Get Carbn Currency Exchange RateGet the current exchange rate from source currency to target currency using Carbn's rates
Next
⌘I
Get Total Custody Wallet Balances
curl --request GET \
--url https://api.carbnconnect.com/payment/api/v1/custody-wallet/total-balances \
--header 'x-api-key: <api-key>'import requests
url = "https://api.carbnconnect.com/payment/api/v1/custody-wallet/total-balances"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.carbnconnect.com/payment/api/v1/custody-wallet/total-balances', 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://api.carbnconnect.com/payment/api/v1/custody-wallet/total-balances",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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://api.carbnconnect.com/payment/api/v1/custody-wallet/total-balances"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.carbnconnect.com/payment/api/v1/custody-wallet/total-balances")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.carbnconnect.com/payment/api/v1/custody-wallet/total-balances")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"balance": 0,
"crypto": "eurc",
"contract_address": "HzwqbKZw8HxMN6bF2yFZNrht3c2iXXzpKcFu7uBEDKtr"
},
{
"balance": 0,
"crypto": "pyusd",
"contract_address": "2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo"
},
{
"balance": 0,
"crypto": "usdb",
"contract_address": "ENL66PGy8d8j5KNqLtCcg4uidDUac5ibt45wbjH9REzB"
},
{
"balance": 0.11,
"crypto": "usdc",
"contract_address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
}
]