TXNSHENG
Writing

How I built a USDC payment game with Circle Gateway

Elton Tay ·

I wanted a simple way to show people how a tiny USDC payment works. On my career map, you can pick a destination, tap Send, and watch a coin fly from Singapore. Each tap sends 0.000001 test USDC to a demo wallet on Arc Testnet.

Play the USDC payment game

Why I used Circle Gateway

Gas for a standalone onchain transfer can cost more than a payment this small. The demo wallet is funded through Gateway. For each tap, the server signs a separate EIP-3009 authorization offchain and sends it to Gateway’s x402 settlement API. Gateway accepts those authorizations and settles payments together in batches on Arc Testnet.

What the coin and receipt show

The coin takes off when Gateway accepts the payment. Tap the landed coin to open its receipt. Activity shows which payments are waiting for settlement and links to the Arc Explorer transaction when the batch confirms. Payments in the same batch share an Explorer link.

The map works with a site-funded test wallet, so visitors can try the flow without connecting their own wallet. You can switch destinations while earlier payments are processing. Each tap keeps the destination you had selected.

Open a settled demo receipt or read how Gateway batches payments.