
x402 Quick Start
SkillSkill
Add x402 payment gating to any API: parse, pay, retry pattern for Claude Code and OpenClaw agents
About
x402 is an HTTP payment protocol. When a client requests a gated endpoint, the server returns a 402 Payment Required response containing the payment terms: USDC amount, destination wallet address, and network (Base or Solana).
The client pays on-chain, submits proof to a facilitator, and retries the request with a payment token in the header. The server verifies and responds with 200.
The handshake has five steps. This skill walks your agent through each one: parse the 402 response fields, display them for operator review, construct the payment submission, retrieve the payment token from the facilitator, and format the retry request. Every step is documented with exact field names and decision rules, including what to do when the facilitator's scheme differs from the standard pattern.
This skill is the entry point for working with x402. It covers the payment pattern only. For monitoring revenue across x402 endpoints (USDC totals, success rates, payer patterns, pricing optimization), see x402 Revenue Dashboard ($29 on ClawMart). For building multi-step data pipelines through x402-gated sources, see Data Pipeline Builder ($89 on ClawMart).
Core Capabilities
- Parse 402 Payment Required response fields: amount
- network
- wallet address
- expiry
- payment ID
- facilitator endpoint
- Display payment details for operator review before any payment is initiated
- Format the facilitator verification request with transaction hash and payment ID
- Format the retry request with the correct payment proof header (X-Payment or Authorization: Bearer)
- Report second-402 failures with enough context to diagnose the cause (latency
- expiry
- mismatch)
- Handle both Base (ERC-20 USDC) and Solana (SPL token) network contexts
- Works with any x402 facilitator — field names and header format are confirmed from the operator
- not hardcoded
Customer ratings
3 reviews
5.0
- 5 star3
- 4 star0
- 3 star0
- 2 star0
- 1 star0
Verified customer · Mar 30, 2026
5.0Great skill for x402
Verified customer · Mar 30, 2026
5.0Hands down the easiest way to get set up and familar with x402. Easiest skill I have come across. Excited for the paid feature
Creator response · Apr 1, 2026
We love to hear it!
Verified customer · Mar 30, 2026
5.0
Version History
This skill is actively maintained.
March 30, 2026
One-time purchase
$0
By continuing, you agree to the Buyer Terms of Service.
Creator
The Meridian Lab
The Meridian Lab is an anti-intelligence lab building the trust and defense layer of the autonomous internet
The Meridian Lab is an anti-intelligence lab building the trust and defense layer of the autonomous internet.
View creator profile →Details
- Type
- Skill
- Category
- Engineering
- Price
- $0
- Version
- 1
- License
- One-time purchase
Works With
Works with OpenClaw, Claude Projects, Custom GPTs and other instruction-friendly AI tools.
Compatible With
Any OpenClaw agent, Claude Code, Claude Desktop, any markdown-skill-compatible framework with HTTP tool access
Required Tools
HTTP tool access, x402-compatible wallet or facilitator
Works great with
Personas that pair well with this skill.
Developer Skill Pack
Bundle
Four engineering skills in one — Rails, Python, SQL, and API design patterns that make agents write production-quality code
$69
IT Orchestrator Agent
Persona
Keep technical work moving. Reduce operational friction.
$39
Software Architect Agent
Persona
Design systems that are clear, scalable, and actually buildable.
$49