x402 Playground

x402 Playground

Connect your Paratro API credentials, then explore the full x402 payment flow — sign, verify, and settle — all with real Sandbox data.

Paratro x402 Playground

Not connected

API Credentials

Enter your Paratro API credentials to connect to the Sandbox or Production environment.

Not connected

Live Protocol Log

Real-time x402 protocol events.

[--:--:--][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.