Skip to main content
The 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

The batch-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 a payments.json file:
Then run:
Platform-specific examples: X (Twitter) - payments-x.json:
Farcaster - payments-farcaster.json:
GitHub - payments-github.json:
Email - payments-email.json:
Web - 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

Amount Formats

All the same amount formats from the send command work:
  • Cents: , 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

  1. Set private key:
  2. Sufficient USDC balance: Ensure your wallet has enough USDC for all payments plus network fees.
  3. Valid recipients: All usernames must exist on the specified platform.

Error Handling

If a payment fails, the command continues with remaining payments:
The final summary shows success/failure counts.

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

  1. Test first: Start with a small batch to test your setup
  2. Check balance: Calculate total amount + fees before running
  3. Validate JSON: Ensure JSON files are properly formatted
  4. Save receipts: Keep the receipt URLs for records
  5. Use files: For large batches, JSON files are more manageable than comma-separated
  • send - Send to a single user
  • ai-agent - Use natural language for batch payments

Getting Help

Example Files

View example payment files on GitHub:

Additional Resources