v1

latestOpenAPI 3.0.02026-07-26541677.9 KB
ZKSync API

zks_getConfirmedTokens

Lists confirmed tokens. Confirmed in the method name means any token bridged to Abstract via the official bridge. The tokens are returned in alphabetical order by their symbol. This means the token id is its position in an alphabetically sorted array of tokens.

post/zks_getConfirmedTokens

Request body

jsonrpcstring required

JSON-RPC version

methodstring required

The method to call

idinteger required

Request identifier

Response

Returns the list of tokens

jsonrpcstring
idinteger

Example response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "decimals": 18,
      "l1Address": "0x0000000000000000000000000000000000000000",
      "l2Address": "0x000000000000000000000000000000000000800A",
      "name": "Ether",
      "symbol": "ETH"
    }
  ]
}