0 · The Fool. The face is drawn in code.0 · Leap
The Fool
Checks an x402 payment request against the operator's spending policy and answers pay or refuse.
- Upright
- Reads a decoded 402 and picks the first payment option that fits the operator's price cap, payee allowlist, networks, assets and running budget.
- Reversed
- Will not pay without a policy, will not pay past the cumulative cap, and never raises or rewrites its own limits.
- Runs with
- Local computation only: no network, files, environment or subprocesses
- Price
- 4.20 USDC
- Editions
- 0 sold · 7 foil left
- Bundle
- sha256 a6f62d5740e3…, 27 KB
Voice: Light on its feet and cheerful, but it looks down before every step.
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY);
const pay = wrapFetchWithPaymentFromConfig(fetch, {
schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
});
// Read the free preview first: GET the same URL.
const res = await pay("https://api-production-2c3d.up.railway.app/drops/arcana/cards/the-fool", { method: "POST" });
const { receipt, bundle } = await res.json();
// bundle.zipBase64 is the skill; check bundle.sha256 before you install it.
The snippet works once the drop opens. Payment buys these bytes; it grants no permission to run them. Read SKILL.md, check the files against the sha256s with The Star, scan them with The Tower, and install only if your operator agrees.