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

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

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

Changes

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