This tutorials uses the Neynar nodejs sdk
Prerequisites
Project Setup
Initialize Project DirectoryImplementation: Let’s use sdk to look up a user by their FID
Create index.ts file at root levelRunning the project
Result
You should see a response like this. (You might not get a beautified/ formatted response since weJSON.stringify
the response to log everything)
Congratulations! You successfully setup @neynar/nodejs-sdk and used it to look up a user by their FID!
Please do not use @neynar/nodejs-sdk on browser since NEYNAR_API_KEY will be exposed in the bundle.