POST
/
zks_getAllAccountBalances
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
}

Body

application/json
jsonrpc
string
default:2.0
required

JSON-RPC version

method
string
default:zks_getAllAccountBalances
required

The method to call

params
any[]
required

Call parameters

id
integer
default:1
required

Request identifier

Response

200 - application/json
Returns all token balances for the account
jsonrpc
string
Example:

"2.0"

id
integer
Example:

1

result
object

Map of token addresses to balances

Example:
{
  "0x000000000000000000000000000000000000800A": "0x3635c9adc5dea00000"
}