What is a Wallet ID?
Awallet_id is a unique identifier for an app wallet that Neynar operates on your behalf. When you use a wallet_id, Neynar executes onchain transactions for you, handling gas estimation, transaction submission, and retry logic automatically.
Think of it as a server-side wallet that you fund with gas tokens, and Neynar manages the technical complexity of blockchain interactions.
When Do You Need a Wallet ID?
You need awallet_id for all onchain operations on Neynar:
| Operation | Endpoint | Wallet ID Status |
|---|---|---|
| Mint NFTs | POST /v2/farcaster/nft/mint | REQUIRED |
| Send Fungibles | POST /v2/farcaster/fungible/send | REQUIRED |
| Buy Storage | POST /v2/farcaster/storage/buy | REQUIRED |
| Fetch FID | GET /v2/farcaster/user/fid | REQUIRED |
| Register Account | POST /v2/farcaster/user/ | REQUIRED |
All onchain operations require a wallet_id. This ensures consistent billing and gives you full control over your onchain spending.
Getting Your Wallet Set Up
App wallets are self-service - you can create them directly in the developer portal!Setup Process
- Go to the Neynar Developer Portal
- Select your app from the dashboard
- Navigate to the “App Wallet” tab in your app settings
-
Copy your
wallet_id- You’ll see a field displaying your wallet ID once created - Copy your wallet address(es) - You’ll receive wallet addresses for each supported network
- Fund your wallet with gas tokens (see below)
- Start using the wallet_id in your API calls immediately!
Need Help? If you encounter any issues during setup, message our developer Slack.
What You’ll Get
When you create an app wallet, you’ll receive:- Wallet ID - A unique identifier to use in API headers (e.g.,
wlt_abc123...) - Wallet Addresses - Ethereum addresses for each network where you can send gas tokens (e.g.,
0x1234...)
Finding Your Wallet ID
Your wallet_id is available anytime in the developer portal:- Go to dev.neynar.com
- Select your app
- Navigate to the “App Wallet” tab
- Copy your
wallet_idvalue
Funding Your Wallet
Your wallet needs native gas tokens on the networks where you’ll operate:Supported Networks
| Network | Gas Token | Use Case |
|---|---|---|
| Base | ETH | Production NFT minting, mainnet operations |
| Optimism | ETH | Account registration, storage purchases |
| Base Sepolia | ETH (testnet) | Testing and development |
How to Fund
- Get your wallet address from setup email or portal
- Send gas tokens to that address using any wallet (MetaMask, Coinbase Wallet, etc.)
- Recommended amounts:
- Testing: 0.01 ETH
- Low volume (<100 ops/day): 0.1 ETH
- High volume (>1000 ops/day): 1+ ETH
Funding Example
Monitoring Balance
Check Balance Manually
You can view your wallet balance on any block explorer: Base:Developer Portal
The developer portal shows:- Current balance per network
- Recent transactions
- Wallet addresses for each network
- Transaction history
Using Your Wallet ID
Add thex-wallet-id header to your API requests:
Example: Minting NFTs
Example: Buying Storage
Error Handling
Missing Wallet ID
If you don’t provide a wallet_id when required:x-wallet-id header or request allowlist access.
Invalid Wallet ID
If your wallet_id is incorrect:Insufficient Balance
If your wallet runs out of gas:Best Practices
Security
- ✅ Store wallet_id securely - Treat it like an API key
- ✅ Use environment variables - Never commit wallet_id to code
- ✅ Rotate if compromised - Contact support for new wallet_id
- ❌ Don’t share publicly - Keep wallet_id private
Operations
- ✅ Monitor balance regularly - Set up alerts for low balance
- ✅ Fund adequately - Ensure sufficient gas for your volume
- ✅ Test on testnet first - Use Base Sepolia before mainnet
- ✅ Handle errors gracefully - Implement retry logic
Cost Optimization
- ✅ Batch operations when possible
- ✅ Monitor gas prices - Some operations can wait for lower gas
- ✅ Choose right network - Base often has lower gas costs than Optimism, some transactions can only be done on certain networks.
FAQ
Can I use one wallet_id for multiple apps?
No, each app should have its own wallet_id for security and accounting purposes.What happens if my wallet runs out of funds?
Operations will fail with an insufficient balance error. Fund your wallet to resume operations.Can I withdraw funds from my wallet?
Not currently. App wallets are managed by Neynar for security. Contact support if you need to adjust your setup.Can I see transaction history?
Yes, use a block explorer with your wallet address, or check the developer portal (coming soon).Related Documentation
Mint NFTs
Mint NFTs directly to Farcaster users
Buy Storage
Purchase storage units for users
Create Accounts
Register new Farcaster accounts
Fetch FIDs
Get fresh FIDs for registration

