This guide will help you send your first USDC payment to an X (Twitter) user using the simplest integration method: x402-axios.Documentation Index
Fetch the complete documentation index at: https://docs.snack.money/llms.txt
Use this file to discover all available pages before exploring further.
Quick Example
Send USDC to any X user with just a few lines of code:How It Works
- Initial Request: Your app makes a payment request to Snack Money API
- 402 Response: API returns payment requirements (amount, recipient, chain)
- Auto Payment: x402-axios automatically executes the on-chain USDC transfer
- Retry with Proof: Request is retried with payment proof
- Success: API processes the payment and returns confirmation
Prerequisites
- Node.js 18+
- USDC balance on Base or Solana network
- Private key for signing transactions
Installation
Environment Setup
Create a.env file:
Supported Platforms
Send payments to users on:- X (Twitter) -
/payments/x/pay - Farcaster -
/payments/farcaster/pay - GitHub -
/payments/github/pay
Next Steps
- Explore SDK Examples - See all integration options
- Use the CLI - Send payments from command line
- API Reference - Full API documentation