Pay with USDC over the x402 protocol. Works for people with a wallet and for AI agents.
GET /api/x402/coffee) and gets HTTP 402 Payment Required with the price in the PAYMENT-REQUIRED header.PAYMENT-SIGNATURE header. ByteBrew verifies and settles it on the chosen network through Circle's x402 facilitator and returns your order.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.