..
2026-05-17 20:24:58 +03:00
2026-05-17 20:24:58 +03:00
2026-05-17 20:24:58 +03:00

Example Mainnet Server

This example demonstrates how to accept real USDC payments on Base mainnet using Coinbase's hosted x402 facilitator.

Prerequisites

Setup

  1. Copy .env-local to .env and add your Ethereum address to receive payments:
cp .env-local .env
  1. Run the server:
go run mainnet.go