Parse token balances
POST/v1/data/token/balances/parse
Accepts the raw hex RPC response obtained by executing the call from /token/balances/rpc-call and decodes it into structured token balance data with USD values.
Workflow:
- Call
/token/balances/rpc-callto get prepared RPC calls and arpcCallId - Execute the RPC call against your own node
- Send
rpcCallId+rawResponsesto this endpoint for parsing
The rpcCallId ties the response back to the cached preparation context (valid for 5 minutes).
After successful parsing the cached context is deleted.
Response Structure:
items: Array of balance entries for each tokencount: Total number of balance entries
Balance Entry includes:
address: Token contract address (zeroAddress for native)symbol: Token symbolname: Token namedecimals: Token decimalsbalanceRaw: Raw balance as string (wei/smallest unit)balance: Formatted balance as decimal stringbalanceUSD: Balance value in USD
Request
Responses
- 200
- 400
- 404
Token balances with USD values
Validation error
RPC call context not found or expired (older than 5 minutes). Call /token/balances/rpc-call again.