Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add rezearcher/x402-data-api --skill x402-verified-fetchgit clone --depth 1 https://github.com/rezearcher/x402-data-apiWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/rezearcher/x402-data-api/x402-verified-fetch)<a href="https://agentmods.dev/skills/rezearcher/x402-data-api/x402-verified-fetch"><img src="https://agentmods.dev/badge/skills/rezearcher/x402-data-api/x402-verified-fetch/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/rezearcher/x402-data-api/x402-verified-fetch"><img src="https://agentmods.dev/badge/skills/rezearcher/x402-data-api/x402-verified-fetch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00147 | $0.01260 |
| Opus 5.5 | $0.00059 | $0.00504 |
| Sonnet 5.5 | $0.00029 | $0.00252 |
| Haiku 4.5 | $0.00015 | $0.00126 |
Grade A, and why
x402-verified-payment-fetch scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Verify every x402 payment on-chain, from the client
An agent with a wallet can auto-settle any HTTP 402 challenge. The x402
handshake tells it nothing about whether the money actually landed — at the
recipient the endpoint advertised, for the amount it advertised, with a
non-replayable authorization, for the resource it actually fetched. A facilitator
that returns "settled": true is a claim, not a receipt. This skill makes the
agent read the chain itself and decide.
Install
npm i github:rezearcher/x402-verified-fetch
(ESM, dependency-free beyond @x402/fetch + a wallet client; keyless public RPC, $0 COGS.)
Use
Same signature as @x402/fetch's wrapFetchWithPayment — it drops into an existing x402-paying agent with one line changed:
import { wrapFetchWithVerifiedPayment } from "@grey-ridge/x402-verified-fetch";
const fetchVerified = wrapFetchWithVerifiedPayment(fetch, walletClient, {
onMismatch: "throw", // abort the call if the money mis-settled
onResourceMismatch: "strict" // abort if a different resource was substituted
});
const res = await fetchVerified("https://some-x402-api.example/paid");
// The verdict rides on a response header as JSON:
const s = JSON.parse(res.headers.get("x-grs-settlement") ?? "{}");
// s.verdict -> "SETTLED" | "UNDERPAID" | "WRONG_RECIPIENT" | "NO_TRANSFER" | "REVERTED" | "UNVERIFIED"
// s.rail -> "evm" | "svm"
// (or pass { onSettlement: (s) => ... } to get the verdict object via callback)
After the payment settles, the wrapper decodes the PAYMENT-RESPONSE tx, reads it
from two independent public RPCs (cross-confirmed, fails closed on
disagreement), and reconciles the real on-chain transfer against the endpoint's
advertised payTo + amount. SETTLED is the only verdict that means the money
landed correctly; anything else is surfaced before the agent trusts the paid
response. With onMismatch: "throw" a mis-settled call raises instead of
returning a response the agent already paid for.
What ships with it
14 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- .gitignore 34 B
- package.json 1.9 KB
- README.md 14 KB
- src/authz.ts 9.9 KB runs code
- src/chain.ts 10 KB runs code
- src/index.ts 28 KB runs code
- src/reconcile.ts 13 KB runs code
- src/resource.ts 7.3 KB runs code
- src/svm.ts 18 KB runs code
- test/reconcile.test.mjs 26 KB runs code
- test/resource.test.mjs 4.4 KB runs code
- test/svm.test.mjs 9.5 KB runs code
- tsconfig.json 348 B
- tsup.config.ts 326 B runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today First seen · 93 lines · 147 tokens per session scan A 48fcf0a4407f
x402-verified-payment-fetch is a skill published in the GitHub repository rezearcher/x402-data-api (0 stars, last pushed today), licensed MIT. It adds 147 tokens to every session and 1,260 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-06.
x402-verified-payment-fetch compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| x402-verified-payment-fetchrezearcher/x402-data-api | Skill | 0 | today | MIT | A | 147 | Claude Code, Codex |
| pantheon-stakingBankrBot/skills | Skill | 1.2k | 2d ago | none | A | 59 | Claude Code, Codex |
| delu-oracleBankrBot/skills | Skill | 1.2k | 2d ago | none | A | 87 | Claude Code, Codex |
| CTRLaaronjmars/aeon-agent | Skill | 12 | 22d ago | MIT | A | 46 | Claude Code, Codex |
| ct-alphasendaifun/skills | Skill | 131 | 3mo ago | Apache-2.0 | A | 71 | Claude Code, Codex |
| aero-vote-radararaxis33/aero-vote-radar | Skill | 3 | yesterday | MIT | A | 84 | Claude Code, Codex |
| base-agent-treasurygblinproject/gblin-treasury-risk-regime | Skill | 1 | yesterday | MIT | A | 62 | Claude Code, Codex |