Skip to main content

zks_getAllAccountBalances

Returns all balances for confirmed tokens given by an account address.

Parameters

  • address: [Required] The account address.

Returns

The method returns all balances for confirmed tokens associated with the provided account address.

Example

Replace <YOUR-API-KEY> with an API key from your Infura dashboard.

Request

  curl https://zksync-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "zks_getAllAccountBalances", "params": [ "0x98E9D288743839e96A8005a6B51C770Bbf7788C0" ]}'

Response

{
"jsonrpc": "2.0",
"result": {
"0x0000000000000000000000000000000000000000": "0x2fbd72a1121b3100"
},
"id": 2
}