Last updated
Last updated
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.
First, install the Airstack Frog Recipes:
You can create an allow list that checks various onchain data easily using the function. Some of the parameters that you can add to the allow list are:
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
:
the "cast" value to the $channelActions
variable,
the channel ID (e.g. /farcaster channel ID is "farcaster") to $channelId
variable, and
the FID to the $participant
variable
You can check if a Farcaster user is following a list of FIDs by using the function:
You can check if a Farcaster user is being followed by a list of FIDs by using the function:
You can check if the Farcaster user is followed by certain high profile users, e.g. , , etc., by using the function:
You can check if the Farcaster user follows the Frames' creator by using the function:
You can check if Farcaster user has casted in a given channel by using the API and providing:
If you have any questions or need help building an allow list for your Farcaster Frames using the Airstack Frames SDK, please join our Airstack's group.
Learn how to build an Allow List for your Farcaster Frames based on various criterias by using the Airstack Frames SDK.
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.