batch-send command allows you to send USDC to multiple users in a single operation. This is ideal for airdrops, bulk payments, or rewarding multiple contributors.
Syntax
Input Formats
Thebatch-send command supports multiple input formats for flexibility:
1. Comma-Separated Format
2. JSON File
3. URL
4. Inline JSON
Options
—network
Specify which blockchain network to use:Examples
Comma-Separated Format
Send to multiple users on the same platform:JSON File Format
Create apayments.json file:
payments-x.json:
payments-farcaster.json:
payments-github.json:
payments-email.json:
payments-web.json:
From URL
Host your payment file and reference it by URL:Inline JSON
Pass JSON directly as a command argument:Supported Platforms
| Platform | Format in JSON | Comma-separated Format |
|---|---|---|
| X (Twitter) | "platform": "x" | x/username:amount |
| Farcaster | "platform": "farcaster" | farcaster/username:amount |
| GitHub | "platform": "github" | github/username:amount |
"platform": "email" | email/address:amount | |
| Web | "platform": "web" | web/domain:amount |
Amount Formats
All the same amount formats from thesend command work:
- Cents:
1¢,50¢,99¢ - Dollars:
$0.01,$0.50,$1 - Decimal:
0.01,0.50,1
Output
The command processes payments sequentially and shows progress:Use Cases
Airdrop Rewards
Distribute tokens to community members:Team Payments
Pay multiple team members:Open Source Contributions
Reward GitHub contributors:Contest Winners
Distribute prizes:Prerequisites
-
Set private key:
- Sufficient USDC balance: Ensure your wallet has enough USDC for all payments plus network fees.
- Valid recipients: All usernames must exist on the specified platform.
Error Handling
If a payment fails, the command continues with remaining payments:Limits
- Minimum per payment: 0.01 USDC (1¢)
- Recommended batch size: Up to 100 payments per batch
- Rate limits: May apply for very large batches
Tips
- Test first: Start with a small batch to test your setup
- Check balance: Calculate total amount + fees before running
- Validate JSON: Ensure JSON files are properly formatted
- Save receipts: Keep the receipt URLs for records
- Use files: For large batches, JSON files are more manageable than comma-separated
Related Commands
Getting Help
Example Files
View example payment files on GitHub:Additional Resources
- CLI Overview - All CLI features
- Quick Start - Getting started
- GitHub Repository - Source code and examples