Log In

zks_getAllAccountBalances

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

Example

Request

curl --location --request POST 'https://zksync-era-mainnet.unifra.io/v1/your-api-key' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0", "id": 1, "method": "zks_getAllAccountBalances", "params": [ "0x98E9D288743839e96A8005a6B51C770Bbf7788C0" ]}'

Result

{
    "jsonrpc": "2.0",
    "result": {
        "0x0000000000000000000000000000000000000000": "0x2fbd72a1121b3100"
    },
    "id": 2
}
Language
Click Try It! to start a request and see the response here!