Quickstart for Buyers
This guide is for clients / buyers who want to integrate RailBridge x402 payments into their applications to pay protected merchant routes.
1. Prerequisites
2. Install Client Packages
npm install @x402/core @x402/evm @x402/fetch viem3. Configure Environment Variables
CLIENT_PRIVATE_KEY=0xYourClientPrivateKey
EVM_RPC_URL=https://sepolia.base.org
MERCHANT_URL=http://localhost:40214. Basic Client Setup
5. Making a Payment-Protected Request
6. Selecting Preferred Networks (Optional)
7. Reading Payment Receipts
8. Cross-Chain Transparency
9. Error Handling
Last updated
