docs: add USDC payments dApp guide (BasePay on Base Mainnet)#1579
docs: add USDC payments dApp guide (BasePay on Base Mainnet)#1579osr21 wants to merge 2 commits into
Conversation
🟡 Heimdall Review Status
|
|
check github page for documentation about dapp, some fixes applied, but overall need some feedback |
|
Updating this PR with what's changed since it was opened: Security audit completed (June 2026) — full findings and fixes documented at docs/SECURITY.md. Key fixes applied to the gasless relayer:
Gasless transfer guide added — docs/GASLESS.md covers the full EIP-3009 relay system including: typed data structure, relay API reference with all validation rules, relayer wallet requirements, and the MetaMask Blockaid false-positive explanation. V2 contract addresses — all four contracts redeployed at new addresses (Solidity 0.8.35, source-verified on BaseScan):
Multi-contract integration pattern — for any reviewer or developer reading this, the integration pattern that makes BasePay work across four contracts with a single USDC approval is worth documenting: Each contract ( |
|
Update — June 2026: Gasless USDC ↔ EURC Swap via Aerodrome Finance Since the last update on this PR, BasePay has added a new gasless swap feature that may be worth documenting as a separate guide. Summarising the key technical findings below in case it's useful for the docs team. What was built: A two-step gasless relay that lets users swap USDC ↔ EURC on Base Mainnet with a single EIP-3009 off-chain signature and zero ETH. The relay:
Reference implementation: github.com/osr21/basepay-dapp/blob/main/docs/GASLESS_SWAP.md Three production bugs encountered and fixed — documented in detail: 1. 2. eth_estimateGas false-revert — pending state 3. HTTP 500 on production proxy — receipt wait timeout Confirmed live on Base Mainnet:
Happy to expand any of these into a dedicated Base docs guide if useful. |
Summary
This guide shows developers how to build a production-grade USDC payments dApp on Base Mainnet — covering the full stack from wallet connection through on-chain smart contract interactions.
Reference implementation: BasePay — live on Base Mainnet
Source code: github.com/osr21/basepay-dapp
What the guide covers
transferand router-based sends with atomic 0.30% fee deductionContracts deployed on Base Mainnet (source-verified)
0x2d7ba7ed34f8fa16fe4d0d11b51306dc753812c80x82569caf7847040a03ad2c6545ade5af2bdcf47c0x5b3241a47acfda41f15dfd7260339e2a88d523180x546093b0476b4b7909cd84f3a0fef813c421d14aChanges
docs/apps/guides/usdc-payments-dapp.mdx— new guide pagedocs/docs.json— addedapps/guides/usdc-payments-dappto the Apps > Guides navigation groupFits naturally alongside the existing "base-notifications" technical guide and "migrate-to-standard-web-app" guide in the Apps section.