Micro-payment gateway for API services utilizing x402: Internet-native payments
The project turns Coinbase’s x402 “internet-native payments” standard, previously confined to the Base network, into a chain-agnostic, pay-as-you-go billing rail. Leveraging LayerZero’s composability, any stablecoin on any L1/L2 is bridged as an OFT, auto-swapped to USDC on Base, and instantly pulled by an x402 Paymaster for the exact cost of each API call. For this hackathon we’ve already wired up Rootstock and Flow, so developers on those chains can drop in a lightweight SDK and escape monthly subscriptions, manual bridging, and multi-token headaches, while providers receive real-time USDC with no custody risk. A 0.2 % settlement fee aligns our revenue with actual usage, slashing wasted spending for users and unlocking cross-chain reach for infrastructure partners.
The build flows like this: a Next.js front-end asks the user to fund any token on Flow or Rootstock. On Flow-EVM we first swap that token into a Stargate-supported stablecoin via the local DEX, PunchSwap. Everything (stable or not) is then bridged with LayerZero; if the asset landing on Base isn’t already stable, we invoke lzCompose() in the same message to auto-swap it on arrival. Once Flow and Rootstock funds reach Base they’re converted to native USDC, yielding a single, clean balance. The final step is an x402 Paymaster call: every time the dApp fires an API request, the Paymaster pulls just enough USDC to cover that call, no standing subscription, pure pay-as-you-go.