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

  • Base URL
    https://api.mainnet.abs.xyz
  • URL
    https://api.mainnet.abs.xyz/zks_getAllAccountBalances
  • Auth
    none declared

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"
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.