N

Node4all · X402 Test

by Node4all

GETBase Sepolia

$0.002

per call · USDC on Base Sepolia

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://sandbox.node4all.com/v1/x402-test

74

Calls / 30d

20

Unique payers / 30d

Sep 6

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://sandbox.node4all.com/v1/x402-test", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://sandbox.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:84532",
  "network_label": "base-sepolia",
  "protocol": "x402-v2",
  "service": "Node4All",
  "status": "success"
}

Payment details

Pay to0xd275612bf0bb35638432c4d95eaa8d5d22346ca6
AssetUSDC · 0x036cbd53842c5426634e7929541ec2318f3dcf7e
NetworksBase Sepolia
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