Get Token USD Price
Get the USD price of a token. Batch query supported via comma-separated contractAddress values.
Authorizations
API key to access the API (optional)
Query Parameters
Unique identifier for a blockchain network. Use a single value for same-chain batch queries or comma-separated values aligned with each contract address for cross-chain batch queries.
"1,137"
The token contract address to query. Use comma-separated values for batch queries. For same-chain batches, provide one chainId with multiple contract addresses. For cross-chain batches, provide matching comma-separated chainId and contractAddress values in the same order.
"0xdAC17F958D2ee523a2206206994597C13D831ec7,0xc2132D05D31c914a87C6611C10748AEb04B58e8F"
The exchange to query the price from.
uniswap-v2, uniswap-v3, sushiswap-v2, pancakeswap-v1, pancakeswap-v2, quickswap Returns the raw data given by the provider. WARNING: removes backup feature, and raw data returned is not normalized which might make switching providers difficult
null
Overrides our autorouting. Only specify this parameter if you would like to specify only a single provider to use for this request.
Alchemy, GoldRush, Moralis Response
"1.001"
"Tether"
"USDT"
"0x..."
"6"
"https://static.alchemyapi.io/images/assets/825.png"
"uniswap"
"0x..."
"2023-05-20T02:58:53.987519619Z"