This guide demonstrates how to use the Neynar SDK to fetch all mint actions relevant to a contract address (and optionally tokenId for ERC1155s) given a user’s Ethereum address.
Check out this Getting started guide to learn how to set up your environment and get an API key.First, initialize the client:
Copy
Ask AI
// npm i @neynar/nodejs-sdkimport { NeynarAPIClient } from "@neynar/nodejs-sdk";// make sure to set your NEYNAR_API_KEY .env// don't have an API key yet? get one at neynar.comconst client = new NeynarAPIClient(process.env.NEYNAR_API_KEY);