Back to shop
Testnets · test USDC only

Pay with x402

Pay with USDC over the x402 protocol. Works for people with a wallet and for AI agents.

Pay on

Coffee

5.02 USDC

Toy

10.99 USDC

How it works

  1. Your browser or agent calls a product endpoint (e.g. GET /api/x402/coffee) and gets HTTP 402 Payment Required with the price in the PAYMENT-REQUIRED header.
  2. The wallet signs a USDC transfer authorization (EIP-3009). No gas needed.
  3. The request is retried with a PAYMENT-SIGNATURE header. ByteBrew verifies and settles it on the chosen network through Circle's x402 facilitator and returns your order.

For agents

Endpoints (x402 v2, scheme exact). Each 402 response offers two networks in accepts: Arc testnet eip155:5042002 and Base Sepolia eip155:84532.

curl -i https://bytebrew.dev/api/x402/coffee   # 5.02 USDC
curl -i https://bytebrew.dev/api/x402/toy      # 10.99 USDC

Get test USDC for either network from the Circle faucet. No gas is needed: the facilitator pays it.