ankr_getTokenPrice

Retrieves the USD price of the specified token.

Request

This endpoint expects an object.
blockchainenumRequired
Name of the blockchain.
contractAddressstringOptional
Address of the token contract.

Response

Result returned by ankr_getTokenPrice.

blockchainenum
Supported blockchain identifier.
usdPricestring
Current token price calculated by Ankr, in US dollars.
contractAddressstringOptional
Blockchain address, ENS name, or contract address where supported.