cURL
curl --request GET \
--url http://localhost:4100/v1/balance \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"totalFiat": 123,
"change24h": 123,
"stablecoinFiat": 123,
"holdings": [
{
"assetRef": "<string>",
"symbol": "<string>",
"amount": 123,
"priceUsd": 123,
"fiat": 123,
"priceAdvisory": true
}
],
"tokens": [
{
"symbol": "<string>",
"name": "<string>",
"chain": "<string>",
"chainId": 8453,
"tokenAddress": "<string>",
"decimals": 123,
"amount": 123,
"fiat": 123,
"price": 123,
"change24h": 123,
"isStablecoin": true,
"peg": {
"symbol": "<string>",
"status": "unknown",
"asOf": "2023-11-07T05:31:56Z"
},
"spendable": true,
"source": "discovered",
"amountRaw": "<string>",
"unrecognized": true
}
],
"status": "ready",
"asOf": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}Balance
Get v1balance
Agent sessions read their bound account; a different accountId returns not found. Browser owner sessions retain accountId selection. Base chains only.
cURL
curl --request GET \
--url http://localhost:4100/v1/balance \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"totalFiat": 123,
"change24h": 123,
"stablecoinFiat": 123,
"holdings": [
{
"assetRef": "<string>",
"symbol": "<string>",
"amount": 123,
"priceUsd": 123,
"fiat": 123,
"priceAdvisory": true
}
],
"tokens": [
{
"symbol": "<string>",
"name": "<string>",
"chain": "<string>",
"chainId": 8453,
"tokenAddress": "<string>",
"decimals": 123,
"amount": 123,
"fiat": 123,
"price": 123,
"change24h": 123,
"isStablecoin": true,
"peg": {
"symbol": "<string>",
"status": "unknown",
"asOf": "2023-11-07T05:31:56Z"
},
"spendable": true,
"source": "discovered",
"amountRaw": "<string>",
"unrecognized": true
}
],
"status": "ready",
"asOf": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}