Authorizations
The OneBalance API uses API keys to authenticate requests. All API requests require authentication using an API key passed in the x-api-key
header:
curl -X 'GET' \
'https://be.onebalance.io/api/path-to/endpoint' \
-H 'x-api-key: ${ONEBALANCE_API_KEY}' \
...
A public API key is available for testing purposes with limited usage: 42bb629272001ee1163ca0dbbbc07bcbb0ef57a57baf16c4b1d4672db4562c11
.
All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.
Learn how to generate API access tokens at OneBalance Docs.
Query Parameters
Account identifiers in CAIP-10 format or custom chain-agnostic format, separated by commas
"eip155:42161:0xfe52613d747E20F2f62e0A5cC36B0DFAe771C442,solana:J5CCzBULFax899tcirb6wMbenQUd8whbaetG7EfSick5"
Aggregated asset IDs to filter by, separated by commas. At least one of aggregatedAssetId or assetId must be provided.
"ob:eth,ob:usdc,ob:arb"
Additional token assetIds to include, separated by commas. At least one of aggregatedAssetId or assetId must be provided.
"eip155:42161/erc20:0xaf88d065e77c8cC2239327C5EDb3A432268e5831,solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/token:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
Response
Successfully retrieved aggregated balance
Aggregated balance response for v3 endpoints supporting multiple accounts and chain types
Parsed account addresses from the request, organized by chain type
List of aggregated asset balances across all queried accounts and chains
List of specific asset balances that were queried by assetId parameter