prices_onchain_price
DEX price of a token by contract address on Base, Ethereum, Arbitrum, Optimism, Polygon, BSC or Avalanche, or by Solana mint: median of DefiLlama, the deepest DexScreener pool and Jupiter, liquidity, 24h volume and change, confidence flags, and the USDC an executable route returns for selling sizeUsd (default 1000). No chain = all EVM chains searched. 404 not charged. Price: $0.003 USDC per call, paid with x402 on Base.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "<address>"
},
"name": "prices_onchain_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | base, ethereum, arbitrum, optimism, polygon, bsc, avalanche or solana; omit to search every EVM chain | |
| quote | No | false to skip the sell quote (faster) | |
| address | Yes | Token contract (0x...) or Solana mint; "native" = the chain coin (wrapped) | |
| sizeUsd | No | USD size of the sell quote, 1-1000000 (default 1000) |