X

X402factory · Base Coinprice

by X402factory

POSTbase

$0.001

per call · USD Coin on base

Base coin price mini-endpoint for major tokens only. Returns spot prices and 24h stats for well-known tickers like btc, solana, eth, xmr, ltc and other large-cap coins, never microcaps. Pass an optional ticker to get a single-coin 24h snapshot with price, symbol, changeRate, changePrice, high and low, or omit ticker to receive a compact basket of top tokens in a fixed order. Cost: 0.001 USDC per request.

Endpoint

POST https://x402factory.ai/base/coinprice

14

Calls / 30d

9

Unique payers / 30d

Sep 8

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://x402factory.ai/base/coinprice", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "ticker": {
      "description": "Optional ticker symbol for a single major token (case-insensitive). Examples: btc, solana, eth, xmr, ltc. When omitted the endpoint returns a compact basket of top tokens instead.",
      "required": false,
      "type": "string"
    }
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://x402factory.ai/base/coinprice" \
  -H "Content-Type: application/json" \
  -d '{"ticker":{"description":"Optional ticker symbol for a single major token (case-insensitive). Examples: btc, solana, eth, xmr, ltc. When omitted the endpoint returns a compact basket of top tokens instead.","required":false,"type":"string"}}' \
  -H "X-PAYMENT: <signed x402 payment>"

Payment details

Pay to0x402faccc3faeb72351cc2b68c7966faf5f22b0d4
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
Networksbase
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from X402factory & similar services