O

OnTopX402 · BID

by OnTopX402

POSTBaseSolana

$1

per call · USD Coin on Base

Rank on ontopx402.com for example.com

Endpoint

POST https://ontopx402.com/api/bid

5

Calls / 30d

4

Unique payers / 30d

Aug 24

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://ontopx402.com/api/bid", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "amount": "1",
    "description": "What this link is.",
    "url": "https://example.com"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://ontopx402.com/api/bid" \
  -H "Content-Type: application/json" \
  -d '{"amount":"1","description":"What this link is.","url":"https://example.com"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "amount_usd": "1.00",
  "description": "What this link is.",
  "name": "example.com",
  "network": "eip155:8453",
  "ok": true,
  "page": "https://ontopx402.com/e/example-com",
  "paid_usd": "1.00",
  "rank": 1,
  "transaction": "0x…",
  "url": "https://example.com"
}

Payment details

Pay to0xe9740820225b3918b4ddd1292c7ca4ca0e2c2f08
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

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

Get featured →

More from OnTopX402 & similar services