x402 Playground
Explore the x402 payment protocol from every angle. Step through the full flow as Payer, Seller, or Facilitator.
Paratro x402 Playground
Step 1: Request API
Send a request to a resource server that returns HTTP 402.
Step 2: Sign Payment
Create and sign an EIP-712 payment authorization.
Signature details will appear here...
v / r / s / nonce / eip712_hash
Step 3: Pay & Request
Resend the original request with the PAYMENT-SIGNATURE header.
Live Protocol Log
Real-time x402 protocol events across all roles.
Live Protocol Log
Real-time x402 protocol events across all roles.
How x402 works
The x402 protocol enables HTTP-native machine payments in seven steps. Click each step to explore.
Client
AI Agent / User
Resource Server
API / Content
Facilitator
Verify & Settle
Blockchain
USDC / Base
Client sends HTTP request
The client (AI agent or user) sends a regular HTTP request to the resource server without any payment information.
Sign a payment first to get a payload for verification.
Integrate with SDK
Add x402 payments to your application with a few lines of code.
import "github.com/paratro/paratro-sdk-go/x402"
client := x402.NewClient("YOUR_API_KEY", "YOUR_API_SECRET")
// Sign an x402 payment
result, err := client.Sign(ctx, x402.SignRequest{
From: "0xYourWallet...",
To: "0xRecipient...",
Chain: "base-sepolia",
Amount: "10000", // 0.01 USDC (6 decimals)
})
// Verify a payment payload
valid, err := client.Verify(ctx, payloadJSON)
// Settle on-chain
settled, err := client.Settle(ctx, payloadJSON)Ready to integrate x402 payments?
Start building with Paratro's MPC wallet infrastructure and x402 payment gateway.