83trust / 100
Chain Price
by Crypto Token Price (USD) in Onchain & crypto
x402 APIPassing, checked 1 h ago
Crypto token price in USD for AI agents: give a token contract address or mint (or "SOL") on Base, Ethereum or Solana, get its live USD price read on-chain from the deepest DEX pool (Uniswap v3, Orca Whirlpools), not from a price API. Returns the pool used, its depth in USD and a low-liquidity flag, so a trading agent knows how far to trust the quote.
POST https://chain.tollkit.dev/chain/price
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 282 ms typical, 282 ms slowest 5%
- Last check
- 1 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://chain.tollkit.dev/chain/price" \
-H "content-type: application/json" \
-d '{"chain":"base","token":"0x4200000000000000000000000000000000000006"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fchain.tollkit.dev%2Fchain%2Fprice
const res = await pay("https://chain.tollkit.dev/chain/price", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"chain":"base","token":"0x4200000000000000000000000000000000000006"}),
});
console.log(await res.json());Example input
{
"chain": "base",
"token": "0x4200000000000000000000000000000000000006"
}Example output
{
"chain": "base",
"low_liquidity": false,
"pool_depth_usd": 79785764,
"price_usd": 2689.32,
"priced_at": "2026-10-04T07:45:37.309Z",
"source": {
"dex": "Uniswap v3",
"fee_tier": 3000,
"pool": "0x6c561B446416E1A00E8E93E221854d6eA4171372",
"quote_token": "USDC"
},
"symbol": "WETH",
"token": "0x4200000000000000000000000000000000000006"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 1 h ago | Passed | 402 | 282 ms | $0.001 |
| 6 h ago | Passed | 402 | 321 ms | $0.001 |