This guide walks you through generating a Signed Key Request using viem that need to be passed in while registering auth addressDocumentation Index
Fetch the complete documentation index at: https://docs.neynar.com/llms.txt
Use this file to discover all available pages before exploring further.
System & Installation Requirements
Prerequisites
- Node.js >= 18.x (LTS recommended)
- npm >= 9.x OR yarn >= 1.22.x
Initialize project (optional)
Install viem
Code Breakdown and Steps
You can find full code at the end of this guide.Generate a random mnemonic and derive the auth address
Generates a mnemonic and converts it to an Ethereum address (
auth_address)Create a sponsor signature
If you want to sponsor the auth address, you can sign the EIP-712 signature again with a basic Ethereum signature.
This route needs to be sponsored if not provided then neynar will sponsor it for you and you will be charged in credits.
Full Final Code
Enjoy building! 🚀 For additional help, feel free to contact us.