Register new account
Register New User
Register new account
Register account on farcaster. Optionally provide x-wallet-id header to use your own wallet.
Note: This API must be called within 10 minutes of the fetch FID API call (i.e., /v2/farcaster/user/fid). Otherwise, Neynar will assign this FID to another available user.
POST
Register new account
Related documentation:
- Create new Farcaster account - Complete tutorial
- Managing Onchain Wallets - Wallet setup guide
- Developer managed version - For advanced users with developer_managed signers
Node.js SDK
🔗 SDK Method: registerAccount Use this API endpoint with the Neynar Node.js SDK for typed responses and better developer experience.Understanding Wallet ID for Account Registration
This endpoint registers a new Farcaster account with a fetched FID. Registration includes onchain transactions for:- Recording the FID ownership on Optimism
- Setting up initial storage allocation
- Configuring account metadata
Wallet ID (REQUIRED)
Thex-wallet-id header is required for this endpoint. You must provide a wallet_id to pay for the onchain registration transactions.
New to Wallet IDs? See Managing Onchain Wallets to create your app wallet in the developer portal and obtain your
x-wallet-id value.Complete Registration Flow
Step 1: Fetch FID
First, get a fresh FID from the shelf:Step 2: Generate Signature (Client-Side)
The user must sign an EIP-712 message proving ownership of their custody address:Step 3: Register Account (This Endpoint)
Call this endpoint within 10 minutes of Step 1:Code Examples
What You’re Paying For
When you register an account with a wallet_id: Base Costs (Onchain transactions on Optimism):- FID registration in ID Registry
- Initial storage allocation (1 unit)
- Account configuration
- Transaction execution and monitoring
- Gas estimation and optimization
- Retry logic for failed transactions
- FID shelf management
Error Handling
Error: Missing Wallet ID
x-wallet-id header. See Managing Onchain Wallets for setup instructions.
Error: FID Expired
Error: Invalid Signature
Error: Insufficient Wallet Balance
Next Steps
Update Profile
Set username, bio, and profile picture
Create Signer
Enable your app to write on behalf of user
Manage Your Wallet
Fund your wallet for more operations
Complete Tutorial
Full account creation guide with code examples
Authorizations
API key to authorize requests
Headers
Wallet ID to use for transactions
Body
application/json