developer & data tools · built for agents

x402node

Precise, deterministic tools an LLM cannot guess — on-chain data, parsing, crypto, conversion, text and more — priced and structured for autonomous agents, settled trustlessly over x402.

156 endpoints · 31 categories · USDC on Base · no accounts, no API keys, no subscriptions

01 Quick start

Install (JS / TypeScript)

npm i x402-fetch viem
import { wrapFetchWithPayment } from "x402-fetch";
import { createWalletClient, http } from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { base } from "viem/chains";

const account = privateKeyToAccount("0xYOUR_KEY");
const wallet  = createWalletClient({ account, chain: base, transport: http() });
const pay     = wrapFetchWithPayment(fetch, wallet);

const r = await pay("https://api.x402node.dev/chain/tx-decode?tx=0x...");
console.log(await r.json());   // 402 -> auto-sign EIP-3009 -> 200 + data

Inspect from the command line

curl -i https://api.x402node.dev/dev/uuid
# HTTP/1.1 402 Payment Required
# the body carries the x402 payment terms (network, amount, asset)
# a paying client signs EIP-3009 and retries with the X-PAYMENT header

Any x402-capable client or agent works — the protocol is plain HTTP. Python client and MCP server are on the way.

02 How it works

x402 is HTTP's native payment standard. The server returns 402 Payment Required with payment terms; the client signs an EIP-3009 authorization; the Coinbase CDP facilitator settles on Base; the request is fulfilled. End-to-end in roughly one second. No account, no key, no subscription — the agent simply pays per call.

03 Links

04 Get your API on x402

x402 onboarding service

Have an API or data feed you want agents to pay for? We handle the full x402 integration — payment gating, pricing, on-chain settlement, manifest and directory listing — and get you live and discoverable for autonomous agents.

business@cn402.com →

05 Endpoints (156)

⚠ These endpoints are paid programmatically by AI agents and x402 clients. Clicking a link opens the raw API and returns HTTP 402 — do not try to pay manually with a browser wallet; it will not complete. Integrate with an x402 client (x402-fetch) or an x402-capable agent.

wallet · 15

/wallet/age-activity $0.05 Wallet age and activity profile: POST a Base address, returns wallet age (since first inbound), total transaction count, ETH balance, last activity date, days since last tx, and a recent monthly activity heatmap. /wallet/approvals $0.1 Token approval risk scan: lists active ERC20 allowances on a wallet's currently-held tokens and flags unlimited approvals (>= 2^255), especially to unverified spenders. /wallet/classify $0.05 Combines onchain RPC analysis with Coinbase Bazaar payer behavior. /wallet/cluster $0.1 Detect wallet cluster: given seed address, trace USDC funding source backwards then find sibling addresses funded by same source within last 30 days. /wallet/counterparty-graph $0.1 USDC counterparty graph on Base: POST an address, maps who it sends/receives USDC to/from over N days (hop 1), optionally expands the top counterparties one more hop (hop 2) to reveal clusters and indirect links. /wallet/ens-resolve $0.05 Bidirectional ENS + Basename resolution: POST { name } (e.g. /wallet/exposure $0.1 Counterparty exposure analysis: given wallet address, scans last 30 days of Base USDC transfers and aggregates interactions with all labeled entities (CEX, DEX router, bridge, protocol). /wallet/first-funder $0.1 Source-of-funds tracing: POST a Base address, traces its earliest inbound funding (native ETH + ERC20) back up to N hops to find the first funder and ultimate origin. /wallet/label-bulk $0.05 For AI agent due diligence, counterparty screening, automated KYC-lite and payment-routing risk gating. /wallet/pnl $0.1 Realized profit and loss and cost basis for an ERC20 token in a wallet on Base, computed from on-chain DEX trades against a quote asset (USDC by default). /wallet/recent-whales $0.05 Recent large USDC transfers on Base mainnet with auto-classification of sender and receiver addresses. /wallet/risk-profile $0.2 Full wallet risk profile in one call: behavior classification + credit score (0-100) + labeled-counterparty exposure (last N days, default 7). /wallet/score $0.05 Wallet credit score 0-100 from onchain transaction history pattern. /wallet/token-safety $0.1 Token safety check before buying or interacting: given an ERC20 contract on Base, returns risk_score 0-100 and verdict. /wallet/tx-verify $0.05 Onchain transaction verification: POST a Base tx hash, returns whether it confirmed or reverted, confirmation count, the actual ERC20 token transfers that occurred (with token labels), ETH value moved, gas used and gas cost.

text · 12

chain · 9

dev · 6

maps · 6

crypto · 5

domain · 5

encode · 5

finance · 5

image · 5

math · 5

md · 5

password · 5

time · 5

validate · 5

web · 5

citation · 4

color · 4

convert · 4

identity · 4

knowledge · 4

nlp · 4

search · 4

url · 4

feed · 3

forum · 3

generate · 3

npm · 3

pdf · 3

reader · 3

supply · 3