â Frames Validator đ
Learn how to validate your Farcaster Frames Signature Packet using the Airstack Validation API.
Airstack provides an easy-to-use Validation API to validate your Frames signature packet in your Farcaster Frames.
Keep in mind that to access the Airstack Validation API, you will need an API key which will require you to hold at least 1 /airstack Channel Fan Token in either your Farcaster custodial or verified wallet for access.
You can access the Validation API in various ways, depending on the stacks that you are using:
Airstack Frames SDK: suitable for those using JS/TS in their tech stacks, e.g. Frames.js, Next.js, etc.
Frog Framework: suitable for those using Frog to build their Frames
Airstack
FarcasterValidateFramesMessage
API: suitable for those building Frames that either require fetching Farcaster details on the interactors or casters or building with other tech stacks than JS/TS.
On the bottom, you can also find the test results on the performance of our API here. đ The Airstack Frames Validator is entirely free to use. No credits will be charged. đ
Airstack Frames SDK
You can validate Frames Signature Packet for your Farcaster Frames by using the validateFramesMessage
function:
Frog Framework
If you are using the Frog Framework, validation logic is embedded so you can instead set the hubs config to validate with the Airstack Validation API by providing the Hub API URL and the Airstack API key:
Frames.js Framework
If you are using the Frames.js Framework, you can use the farcasterHubContext
middleware to set the hubs config to validate with the Airstack Validation API by providing the Hub API URL and the Airstack API key:
Airstack FarcasterValidateFramesMessage
API
FarcasterValidateFramesMessage
APIAlternatively, you can also easily use the FarcasterValidateFramesMessage
API to not only validate Frames Signature packet, but additionally fetch all Farcaster details of the interactors and casters in one single API call:
Try Demo
Code
Testing on Airstack Validation API
We also ran some tests on the Validation API with results shown below:
Developer Support
If you have any questions or need help regarding validating your Farcaster Frames, please join our Airstack's Telegram group.
More Resources
Last updated