Live on Base

Echo Service

Store and retrieve messages with x402 payments. Pay with USDC, get a UUID handle, retrieve anytime.

$0.01 USDC per request

How It Works

1

Send a request

POST a JSON body to the API endpoint. The server responds with HTTP 402 and payment details.

2

Pay with USDC

Your x402-compatible client signs a USDC payment on Base and retries the request with the payment header.

3

Get your response

The server verifies payment, processes your request, and returns the result.

API Reference

Store
POST /api/echo
Retrieve
GET /api/echo/{id}
Price
$0.01 USDC
Network
Base

Store a Message

# Using awal CLI (x402 client)
npx awal@latest x402 pay \
  /api/echo \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"message": "Hello, world!"}' \
  --json
# Returns: {"id": "uuid-handle"}

Retrieve a Message

npx awal@latest x402 pay \
  /api/echo/{id} \
  --json
# Returns: {"message": "Hello, world!", "timestamp": "..."}
Agents: request this page with Accept: text/markdown for a machine-readable version.