v1

latestOpenAPI 3.0.02026-07-26541677.9 KB
ZKSync API

zks_getAllAccountBalances

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

post/zks_getAllAccountBalances

Request body

jsonrpcstring required

JSON-RPC version

methodstring required

The method to call

idinteger required

Request identifier

Response

Returns all token balances for the account

jsonrpcstring
idinteger
resultobject

Map of token addresses to balances

Example response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "0x000000000000000000000000000000000000800A": "0x3635c9adc5dea00000"
  }
}