Skip to main content
Pre-requisites
  • Write access to a Snapchain instance
  • Private key of an account key registered to an fid
  • An Ethereum provider URL for OP Mainnet (e.g. via Alchemy, Infura or QuickNode).
To create a Verification proving ownership of an external Ethereum address, you can use an Eip712Signer to sign a verification message, and the makeVerificationAddEthAddress function to construct a message to send to a Hub. First, set up clients and account keys:
Then create a verification signature using an Eip712Signer. You’ll need to query the latest blockhash on OP mainnet and include it in the signed message.
Finally, use makeVerificationAddEthAddress to construct a Verification message you can send to a Hub.

Full code example

[@farcaster/hub-nodejs]