Token price
getTokenPriceUSD price of a token on one blockchain: pass a contract address for an ERC-20, or leave it empty for the native coin. Returns { chain, asset, usd, priced_via_contract, as_of: { timestamp, blockNumber, lag, status } }. Read as_of before reporting a price; it says how stale the indexer's view is. A native-coin query is priced from the WRAPPED token, which is why priced_via_contract is a wrapped-token address rather than the coin itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Chain slug, e.g. eth, bsc, polygon. | |
| blockchain | No | DEPRECATED alias for `chain`. Use `chain`. | |
| contractAddress | No | Contract address of the token. Leave empty for native coin. |