In this guide, we’ll make a cast action with the neynar SDK and frog.fm, within a few minutes! The cast action will fetch the follower count of the cast’s author using its fid and display it.
src/index.ts
file. Here, you’ll be able to see a starter frame on the / route. But first, let’s change the Frog configuration to use /api
as the base path and use neynar for hubs like this:
src/lib/neynarClient.ts
file and add the following:
.env
file with the name NEYNAR_API_KEY
.
Head back to the src/index.tsx
file and add the following in the followers route instead of the GM message:
fetchBulkUsers
function. Finally, we return a message with the follower count!
index.tsx
like this:
bun run dev
and head over to http://localhost:5173/dev you’ll be able to see a frame somewhat like this: