In this guide, we’ll make a multi-step cast action, within a few minutes! The cast action will go ahead and return a frame which will show the cast hash.
index.tsx
and update the Frog instance to use neynar hubs and make sure to update the api key so that you can get analytics for your frame and cast action!
index.tsx
file and update the /
frame to this:
.castAction
which can be used to create new cast actions like this:
/get-cast-hash
route which will return a new frame linking to /cast-hash
. In the last object, you can change the name and icon of your cast action and add a description as well!
Now, let’s create the frame that the cast action will return.
/cast-hash
route like this:
frameData
object and displays it.
Now we can go ahead and test our cast action. But for that, you need to host your server somewhere, for local development you can use ngrok.
If you don’t already have it installed, install it from here. Once it’s installed authenticate using your auth token and serve your app using this command: