Send fungibles
Onchain
Send fungibles
Send fungibles in bulk to several farcaster users. A funded wallet is to required use this API. React out to us on the Neynar channel on farcaster to get your wallet address.
POST
Send fungibles
Related documentation:
- Managing Onchain Wallets - Wallet setup guide
Understanding Wallet ID for Fungible Transfers
This endpoint allows you to send fungible tokens (ERC-20, SPL tokens, etc.) in bulk to multiple Farcaster users. You can send tokens using their FID (Farcaster ID) instead of wallet addresses.Wallet ID (REQUIRED)
Thex-wallet-id header is REQUIRED for this endpoint. You must provide a funded wallet that will execute the token transfers on your behalf.
New to Wallet IDs? See Managing Onchain Wallets to create your app wallet in the developer portal and obtain your
x-wallet-id value.Code Examples
Basic Token Transfer
Supported Networks
You can send fungibles on:| Network | Token Standard | Native Token |
|---|---|---|
| Base | ERC-20 | ETH |
| Optimism | ERC-20 | ETH |
| Base Sepolia | ERC-20 (testnet) | ETH |
| Solana | SPL | SOL |
What Youβre Paying For
When you send fungibles with a wallet_id:- Services Included:
- FID to wallet address resolution
- Transaction execution and monitoring
- Gas estimation and optimization
- Retry logic for failed transactions
- Batch processing support
Batch Transfers
Send to multiple recipients in a single API call:Error Handling
Error: Missing Wallet ID
x-wallet-id header. See Managing Onchain Wallets for setup.
Error: Invalid Wallet ID
Error: Insufficient Wallet Balance
Error: Insufficient Token Balance
Use Cases
Reward Community Members
Airdrop Custom Tokens
Pay for Services
Node.js SDK
π SDK Method: sendFungiblesToUsers Use the Neynar Node.js SDK for typed responses and better developer experience:Best Practices
Security
- β Validate recipients - Verify FIDs before sending
- β Set reasonable limits - Implement transfer caps
- β Monitor transactions - Track all transfers
- β Handle errors gracefully - Implement retry logic
Operations
- β Fund wallet adequately - Ensure sufficient token and gas balance
- β Batch when possible - More efficient for multiple recipients
- β Test on testnet first - Use Base Sepolia before mainnet
- β Monitor wallet balance - Set up low balance alerts
Cost Optimization
- β Batch transfers - Reduce per-recipient costs
- β Choose right network - Base often has lower gas costs than Optimism
- β Monitor gas prices - Send during low-traffic periods when possible
- β Use efficient tokens - Some ERC-20s are more gas-efficient than others
Next Steps
Manage Your Wallet
Set up and fund your wallet for token transfers
Fetch User Balance
Check token balances for Farcaster users
Mint NFTs
Mint NFTs to Farcaster users
Contact Support
Need help? Reach out to our team
Authorizations
API key to authorize requests
Headers
Wallet ID to use for transactions
Body
application/json
Available options:
base, optimism, base-sepolia Required array length:
1 - 200 elementsContract address of the fungible token to send. If not provided, the default is the native token of the network.
Pattern:
^0x[a-fA-F0-9]{40}$Example:
"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"