Mutual Follows/Followers
Follow NFT Holders
How to follow all Farcaster users who own a certain NFT
This guide demonstrates how to follow Farcaster users who own a specific NFT.
Check out this Getting started guide to learn how to set up your environment and get an API key.
Before all that, initialize Neynar client:
Javascript
First, we need to get the addresses owning Milady. We can use the Alchemy NFT API to get the addresses of users who own the NFT.
Javascript
Next, get Farcaster FIDs of each address, then filter out any undefined values.
Javascript
Then, we can use the Follow user endpoint to follow each user.
Javascript
Example output:
That’s it! You can now follow users who own a specific NFT easily with the Neynar SDK.
Ready to start building?
Get your subscription at neynar.com and reach out to us on Telegram with any questions!