Interactive Demo

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.

402 response will appear here...

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.

base64-encoded payment signature will appear here...
API response will appear here...

Live Protocol Log

Real-time x402 protocol events across all roles.

[12:01:05][Setup]Waiting for connection...
[12:01:06][Setup]Network: Base Sepolia selected
[12:01:10][Payer]Ready to send x402 requests
[12:01:12][Seller]Mock server configuration loaded
[12:01:15][Facilitator]Verification engine idle
[12:01:20][Setup]Waiting for action...

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.