Token API

List native and ERC-20 currencies indexed on a chain

Returns the catalog of currencies (native coin + indexed ERC-20 tokens) for a single blockchain, including symbol, decimals, contract address, and a thumbnail URL.

Pass blockchain to scope the catalog. Useful for building asset pickers, populating token dropdowns, or mapping unknown contract addresses to known token metadata.

Part of the Token API product (700 compute units per call, $0.00007 at base rate).

post/?ankr_getCurrencies

Request

Request body

idinteger required

Client-supplied request ID echoed in the response.

jsonrpc'2.0' required
method'ankr_getCurrencies' required

Example request

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "ankr_getCurrencies",
  "params": {
    "blockchain": "polygon"
  }
}

Response

Success. JSON-RPC result contains the currencies array. JSON-RPC errors are returned with HTTP 200; check for an error key in the response body.

idinteger required
jsonrpc'2.0' required

Changes

No recorded changes to this operation across all 1 revision of this API.