Skip to main content
POST
Register Farcaster account onchain

This API uses developer_managed signers

  • If not using developer_managed signers, use this API to create new Farcaster accounts.
  • If unsure whether you’re using developer_managed signers, you’re probably not using them and should use the other API.

Node.js SDK

πŸ”— SDK Method: registerAccountOnchain Use this API endpoint with the Neynar Node.js SDK for typed responses and better developer experience.

Authorizations

x-api-key
string
header
default:NEYNAR_API_DOCS
required

API key to authorize requests

Headers

x-wallet-id
string
required

Wallet ID to use for transactions

Body

application/json
registration
object
required
idem
string

An Idempotency key is a unique identifier for the request. Note:

  1. Pre-registration calls must be idempotent when using idempotency keys.
  2. This is used to prevent duplicate requests. Use the same idem key on retry attempts.
  3. This should be a unique identifier for each request.
  4. Recommended format is a 16-character string generated by the developer at the time of making this request.
pre_registration_calls
object[]
signers
object[]
storage_units
integer
Required range: x >= 0
Example:

2

Response

Success

message
string
Example:

"Account registered successfully"

transaction_hash
string
Example:

"0x2e276b4d014334797d9951ce2d3b7a11a4a58855cb07b3761de36785c618220a"

user
User Β· object