Check out our new component library - build.abs.xyz!
cURL
curl --request POST \ --url https://api.mainnet.abs.xyz/zks_getAllAccountBalances \ --header 'Content-Type: application/json' \ --data ' { "jsonrpc": "2.0", "id": 1, "method": "zks_getAllAccountBalances", "params": [ "0x1111111111111111111111111111111111111111" ] } '
{ "jsonrpc": "2.0", "result": { "0x000000000000000000000000000000000000800A": "0x3635c9adc5dea00000" }, "id": 1 }
Gets all account balances for a given address. The method returns an object with token addresses as keys and their corresponding balances as values. Each key-value pair represents the balance of a specific token held by the account
JSON-RPC version
The method to call
Call parameters
Request identifier
Returns all token balances for the account
"2.0"
1
Map of token addresses to balances
Show child attributes
Token balance in hexadecimal format
{ "0x000000000000000000000000000000000000800A": "0x3635c9adc5dea00000"}
Was this page helpful?