Get balance by ID
curl --request GET \
--url https://api.bron.org/workspaces/{workspaceId}/balances/{balanceId}import requests
url = "https://api.bron.org/workspaces/{workspaceId}/balances/{balanceId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bron.org/workspaces/{workspaceId}/balances/{balanceId}', 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.bron.org/workspaces/{workspaceId}/balances/{balanceId}",
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://api.bron.org/workspaces/{workspaceId}/balances/{balanceId}"
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://api.bron.org/workspaces/{workspaceId}/balances/{balanceId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bron.org/workspaces/{workspaceId}/balances/{balanceId}")
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{
"accountId": "w9jh0gf3w9qaxlre7enezt17",
"accountType": "vault",
"assetId": "10001",
"balanceId": "rcyv3tsc53opdiz7xgrujvg0",
"workspaceId": "e191u51yxnykins6fahd",
"createdAt": "1744369502340",
"networkId": "BTC",
"symbol": "BTC",
"totalBalance": "2.00021084",
"updatedAt": "1744372384276",
"withdrawableBalance": "1.00021084"
}{
"error": "bad-request",
"message": "<string>"
}{
"error": "forbidden",
"message": "<string>"
}{
"error": "conflict",
"message": "<string>"
}Get balance by ID
Fetch balance details
API Key permissions: View only, Transaction Operator, Full AccessGET
/
workspaces
/
{workspaceId}
/
balances
/
{balanceId}
Get balance by ID
curl --request GET \
--url https://api.bron.org/workspaces/{workspaceId}/balances/{balanceId}import requests
url = "https://api.bron.org/workspaces/{workspaceId}/balances/{balanceId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bron.org/workspaces/{workspaceId}/balances/{balanceId}', 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.bron.org/workspaces/{workspaceId}/balances/{balanceId}",
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://api.bron.org/workspaces/{workspaceId}/balances/{balanceId}"
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://api.bron.org/workspaces/{workspaceId}/balances/{balanceId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bron.org/workspaces/{workspaceId}/balances/{balanceId}")
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{
"accountId": "w9jh0gf3w9qaxlre7enezt17",
"accountType": "vault",
"assetId": "10001",
"balanceId": "rcyv3tsc53opdiz7xgrujvg0",
"workspaceId": "e191u51yxnykins6fahd",
"createdAt": "1744369502340",
"networkId": "BTC",
"symbol": "BTC",
"totalBalance": "2.00021084",
"updatedAt": "1744372384276",
"withdrawableBalance": "1.00021084"
}{
"error": "bad-request",
"message": "<string>"
}{
"error": "forbidden",
"message": "<string>"
}{
"error": "conflict",
"message": "<string>"
}Response
OK
Account ID
Example:
"w9jh0gf3w9qaxlre7enezt17"
Type of the account. See details
Available options:
vault Asset ID
Example:
"10001"
Balance ID
Example:
"rcyv3tsc53opdiz7xgrujvg0"
Workspace ID
Example:
"e191u51yxnykins6fahd"
Created at timestamp
Example:
"1744369502340"
Network ID
Example:
"BTC"
Asset symbol
Example:
"BTC"
The overall balance of a account
Example:
"2.00021084"
Last updated at timestamp
Example:
"1744372384276"
Balance available for withdrawal
Example:
"1.00021084"
Was this page helpful?
