curl --request GET \
--url https://api-test.uniblock.dev/uni/v1/token/price \
--header 'X-API-KEY: <api-key>'{
"usdPrice": "1.001",
"name": "Tether",
"symbol": "USDT",
"address": "0x...",
"decimals": "6",
"logo": "https://static.alchemyapi.io/images/assets/825.png",
"exchangeName": "uniswap",
"exchangeAddress": "0x...",
"updatedAt": "2023-05-20T02:58:53.987519619Z"
}Get the USD price of a token. Batch query supported via comma-separated contractAddress values.
curl --request GET \
--url https://api-test.uniblock.dev/uni/v1/token/price \
--header 'X-API-KEY: <api-key>'{
"usdPrice": "1.001",
"name": "Tether",
"symbol": "USDT",
"address": "0x...",
"decimals": "6",
"logo": "https://static.alchemyapi.io/images/assets/825.png",
"exchangeName": "uniswap",
"exchangeAddress": "0x...",
"updatedAt": "2023-05-20T02:58:53.987519619Z"
}Documentation Index
Fetch the complete documentation index at: https://docs.uniblock.dev/llms.txt
Use this file to discover all available pages before exploring further.
API key to access the API (optional)
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
Specify which provider to use. The project's provider priority list is used by default if no providers are selected. (Priority list can be managed on Uniblock's dashboard)
Alchemy, GoldRush, Moralis "1.001"
"Tether"
"USDT"
"0x..."
"6"
"https://static.alchemyapi.io/images/assets/825.png"
"uniswap"
"0x..."
"2023-05-20T02:58:53.987519619Z"
Was this page helpful?