x402 tools
Use to price tokens by contract address, including long-tail tokens with no CoinGecko listing. Live DEX price, 24h change, volume, liquidity and market cap for up to 30 tokens per call on ethereum, base, arbitrum, optimism, polygon, bsc, avalanche, solana. One flat price per call; not charged if no address has a price.
- Price per call
- $0.002
- Chain
- Base
- Method
- GET
- Paid calls · 30 days
- 4
Call it from code
This API is run by its own provider and paid directly through x402. We list it so you can find it; we don't route or hold the payment.
import { x402Client, wrapFetchWithPayment } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
const client = new x402Client();
registerExactEvmScheme(client, { signer: agentAccount });
const pay = wrapFetchWithPayment(fetch, client);
const res = await pay("https://x402-tools-production-2755.up.railway.app/tools/dex-price", { method: "GET" });
console.log(await res.json());https://x402-tools-production-2755.up.railway.app/tools/dex-price