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
- Base URLhttps://rpc.ankr.com/multichain/569ca1f392f7d3d0bb1073a1173ecb649af1d9249231fe59fa95db19d5ae41fe
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
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.
Changes
No recorded changes to this operation across all 1 revision of this API.