d21 token_price
Token Price ($0.003): Base token price derived from on-chain state, not a resold price-API feed. Curated majors (ETH, WETH, USDC, DAI, cbETH, cbBTC, BTC) are priced from Chainlink's own Data Feed aggregator contracts on Base; any other Base ERC-20 address is priced from its deepest discoverable Uniswap V3 pool against USDC (with a liquidity read and a low-liquidity flag), or a clean unsupported-to
- Price per call
- $0.003
- Chain
- Base
- Method
- POST
- Paid calls · 30 days
- 5
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://draconic21-x402-api.onrender.com/v1/token_price", { method: "POST" });
console.log(await res.json());https://draconic21-x402-api.onrender.com/v1/token_price