Prerequisites
Before you begin, ensure you have:- Node.js 20+ installed (Download)
- USDC balance on Base or Solana network
- Private key for your wallet
Step 1: Set Your Private Key
The CLI needs your private key to sign transactions. Set it as an environment variable:For Base Network (EVM)
For Solana Network (SVM)
Security Note: Never commit your private key to version control. Use environment variables or a
.env file.Using a .env File (Optional)
Create a.env file in your project directory:
Step 2: Send Your First Payment
Now you’re ready to send USDC! Use thesend command:
Send to an X (Twitter) User
Send to a Farcaster User
Send to a GitHub User
Send to an Email Address
Send to a Web Domain
Step 3: Review the Output
After running the command, you’ll see:Understanding the Command
The basic syntax for sending a payment is:Platform Formats
| Platform | Supported Formats | Example |
|---|---|---|
| X (Twitter) | x/, x.com/, twitter/, twitter.com/ | x/aeyakovenko |
| Farcaster | farcaster/, farcaster.xyz/ | farcaster/toly |
| GitHub | github/, github.com/ | github/octocat |
email/ | email/[email protected] | |
| Web | web/ | web/snack.money |
Amount Formats
You can specify amounts in multiple formats:- Cents:
1¢,50¢,99¢ - Dollars:
$0.01,$0.5,$1 - Decimal:
0.01,0.5,1
Specifying the Network
By default, the CLI auto-detects the network based on which private key you’ve set. You can explicitly specify the network with the--network flag:
Examples
Here are some practical examples:Example 1: Tip a Tweet
Example 2: Support a Farcaster Creator
Example 3: Thank an Open Source Developer
Next Steps
Now that you’ve sent your first payment, explore more features:Send to Multiple Users
Use batch payments to send to multiple users at once:Use AI Agent
Describe payments in natural language:Troubleshooting
”Insufficient USDC balance”
Ensure your wallet has enough USDC on the network you’re using. Check your balance:- Base: BaseScan
- Solana: Solana Explorer
”Invalid private key”
Make sure your private key is correctly formatted:- Base: Should start with
0x(66 characters total) - Solana: Base58 encoded string
”User not found”
The username may not exist on the specified platform. Verify:- The username is correct
- The user has an account on the platform
- You’re using the correct platform prefix
Additional Resources
- CLI Overview - Full feature overview
- Installation Guide - Detailed installation instructions
- Send Command - Complete send command reference
- GitHub Repository - Source code and examples
Getting Help
Need help? Here are your options:- Report issues
- Request features
- View examples
- Contribute