API Reference

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 }
Path Params
string
required
Body Params
string
Defaults to 2.0
string
Defaults to zks_getAllAccountBalances
params
array of strings
Defaults to 0x98E9D288743839e96A8005a6B51C770Bbf7788C0
params
string
Defaults to 1
Responses

Language
Click Try It! to start a request and see the response here! Or choose an example:
application/json