Learn how to build an Allow List for your Farcaster Frames based on various criterias by using the Airstack Frog Recipes.
You can limit access to your Farcaster Frame to only certain users that fulfill a requirement by creating an allow list based on certain criteria.
Get Started
First, install the Airstack Frog Recipes:
npminstall@airstack/froghono
yarnadd@airstack/froghono
pnpminstall@airstack/froghono
buninstall@airstack/froghono
createAllowList
You can create an allow list that checks various Farcaster data easily using the createAllowList function. Some of the parameters that you can add to the allow list are:
Name
Type
Description
numberOfFollowersOnFarcaster
number
Check If the number of Farcaster followers greater than or equal to the given number.
isFollowingOnFarcaster
number[]
Check if the given FIDs are being followed by a Farcaster user.
Once you have the criteria set, the function will help you check whether all the criterias are fulfilled.
By default, it will only return true for Farcaster users that satisfy ALL the given requirements. However, if you would like to check your user with a different logic, you can provide an optional custom isAllowedFunction:
If you have any questions or need help building an allow list for your Farcaster Frames using the Airstack Frog Recipe, please join our Airstack's Telegram group.