N

Node4all · X402 Test

by Node4all

GETBase

$0.002

per call · USD Coin on Base

Node4All Fortune — deterministic fortune reading derived from the x402 payment authorization nonce. Flagship demo of the Node4All x402 v2 payment flow. Operator: Node4All (https://node4all.com). Currency: USDC on Base.

Endpoint

GET https://api.node4all.com/v1/x402-test

8

Calls / 30d

6

Unique payers / 30d

Sep 9

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://api.node4all.com/v1/x402-test", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://api.node4all.com/v1/x402-test" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "endpoint": "node4all-fortune",
  "energy": "Creative momentum",
  "fortune": "Fortune favors the on-chain.",
  "lucky_color": "indigo",
  "lucky_number": 42,
  "network": "eip155:8453",
  "network_label": "base-mainnet",
  "protocol": "x402-v2",
  "service": "Node4All",
  "status": "success"
}

Payment details

Pay to0xd275612bf0bb35638432c4d95eaa8d5d22346ca6
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 Node4all & similar services