- Home
- Skills
- APIs & Backend
- x402 Paywall
x402 Paywall
by Temka
Add per-call USDC paywalls (x402 v2) to any HTTP API or MCP tool: correct 402 challenges, facilitator routing, price checks, and where to list the paid endpoint.
Free
x402 Paywall
Example session with this skill installed
Add a $0.002 per-call paywall to my existing FastAPI route GET /v1/dns, paid in USDC on Base mainnet.
- Read your context and instructions
- Compiled the x402 paywall
A correct x402 v2 402 challenge (base64 PAYMENT-REQUIRED + JSON mirror), a verify -> serve -> settle handler, the facilitator choice with the mainnet trap called out, and listing copy for CDP Bazaar / PayAI.
Connects securely to your tools. The creator never sees your data.
About this skill
Add per-call USDC payment to any HTTP API
This skill turns a plain endpoint into an agent-payable one: the first call returns 402 Payment Required with an x402 v2 challenge, the caller signs a USDC authorization, retries with a PAYMENT-SIGNATURE header, and your server settles through a facilitator and serves the response. No accounts, no API keys, no signup on the buyer side.
Why it is different
Most published x402 material still describes v1 (X-PAYMENT, maxAmountRequired, network base). 98% of live registry resources already speak v2 (measured across 1000 listings on 17 Sep 2026), so paywalls copied from tutorials fail on the first call. This skill is written against the v2 specification, validated against a live Base-mainnet seller endpoint, and ships a checker that tells you exactly why a challenge is rejected.
What you get
SKILL.md- the seller-side workflow: unit pricing, receiving address, the 402 challenge, verify then serve then settle ordering, receipts, replay protection.references/x402-protocol-notes.md- v2 field semantics, CAIP-2 networks, facilitator routing, and the trap that breaks first deployments:x402.org/facilitatorsettles testnets only for EVM, so a Base-mainnet paywall pointed at it can never settle.references/catalog-listing.md- where to list the paid endpoint (CDP Bazaar, PayAI, Circle Gateway) and what listing copy to use.scripts/check_paywall.py- validates a live endpoint's 402 challenge: header vs body, network, USDC contract, atomic-unit price, facilitator support. Distinguishes hard failures from warnings.tests/self_test.py- 8 mock cases (v2 in header, v2 body-only, v1 network label, wrong USDC contract, legacy v1, free route, POST-only route, price mismatch).
Field-level details it carries
Atomic-unit prices as strings, the EIP-712 extra domain, exact resource.url matching, maxTimeoutSeconds, PAYMENT-RESPONSE settlement receipts with success/errorReason, and facilitator /supported kind checks.
Requirements
Python 3.9+ for the checker. No packages to install, no credentials, no private keys - the skill only needs the receiving address you already control.
Seller side only - it does not implement the buyer's wallet. Legacy v1 clients are covered by a compatibility table, not by new v1 code.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
6 uses
Times used to date
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 2 months ago
- Free with an Agensi account
- Accounts
Payai
Coinbase
Circle
X402
Permissions
Allowed Hosts
File Scopes
Reads project files and makes outbound HTTPS requests to the user's own API and to public x402 facilitator discovery endpoints. No writes outside the project, no credentials, no package installs.
What's inside
Frequently Asked Questions
New in APIs & Backend
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.