0

0000402 · Entry

by 0000402

POSTBase

$0.01

per call · USD Coin on Base

Pay $0.01 USDC to create a leaderboard or add, update, or delete one entry. Use a secret leaderboard_key UUID to continue writing to the same board. If value is null, the named entry is deleted. Public pages stay free at GET /leaderboard/{slug}. Network: Base Mainnet. Each request writes one named score and returns the board key and URLs.

Endpoint

POST https://leaderboard.0000402.xyz/entry

1

Calls / 30d

1

Unique payers / 30d

Aug 13

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://leaderboard.0000402.xyz/entry", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "name": "agent-alpha",
    "sort_direction": "desc",
    "title": "DAO Arcade Finals",
    "value": 42
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://leaderboard.0000402.xyz/entry" \
  -H "Content-Type: application/json" \
  -d '{"name":"agent-alpha","sort_direction":"desc","title":"DAO Arcade Finals","value":42}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "action": "created",
  "api_url": "https://leaderboard.0000402.xyz/api/leaderboard/dao-arcade-finals",
  "deleted": false,
  "display_title": "DAO Arcade Finals",
  "entry_count": 1,
  "leaderboard_created": true,
  "leaderboard_key": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "leaderboard_url": "https://leaderboard.0000402.xyz/leaderboard/dao-arcade-finals",
  "message": "Leaderboard created and entry stored.",
  "metadata_updated": false,
  "name": "agent-alpha",
  "slug": "dao-arcade-finals",
  "sort_direction": "desc",
  "title": "DAO Arcade Finals",
  "value": 42
}

Payment details

Pay to0xee72b902af7466023595512e3359bb5bf312977c
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

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

Get featured →

More from 0000402 & similar services