Returns the balances held in the Coinbase account.
The available amount is the immediately spendable balance. The total amount also includes funds currently on hold. Both amounts are returned as decimal strings with 2 decimal places (e.g. "50.00").
Authentication: Requires a Coinbase OAuth Bearer token with the wallet:accounts:read scope.
Returned assets: Currently always returns a single USDC entry. If the payer holds no USDC, the entry is still returned with an available and total of "0" so callers do not need to special-case a missing asset. Additional assets may be returned in the future without a contract change.
A Coinbase OAuth Bearer token provided by the end user (payer). EntryGateway terminates the OAuth token and mints a scoped CAT (Coinbase Auth Token) JWT for downstream services.
Successfully retrieved Coinbase account balances.
A list of balances for an account.
The list of balances.
[
{
"asset": {
"symbol": "btc",
"type": "crypto",
"name": "Bitcoin",
"decimals": 8
},
"amount": {
"btc": { "available": "2.5", "total": "3.0" },
"usd": {
"available": "252705.4",
"total": "303246.48"
}
}
}
]