Coinbase Prime API
cURL
curl --request GET \ --url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/wallets/{wallet_id}/balance
{ "balance": { "symbol": "BTC", "amount": "109.42", "holds": "2", "bonded_amount": "109.42", "reserved_amount": "109.42", "unbonding_amount": "109.42", "unvested_amount": "109.42", "pending_rewards_amount": "109.42", "past_rewards_amount": "109.42", "bondable_amount": "109.42", "withdrawable_amount": "109.42", "fiat_amount": "109.42", "unbondable_amount": "109.42" } }
Query balance for a specific wallet.
BalancesService balancesService = PrimeServiceFactory.createBalancesService(client); GetWalletBalanceRequest request = new GetWalletBalanceRequest.Builder() .portfolioId("PORTFOLIO_ID_HERE") .walletId("WALLET_ID_HERE") .build(); GetWalletBalanceResponse response = balancesService.getWalletBalance(request);
Portfolio ID
Wallet ID
A successful response.
The response is of type object.
object
Was this page helpful?