This repo showcases how to leverage Dune Linea API with a Farcaster Frame to display LXP points alongside with social and onchain metrics.
- Fetch Your Stats: Gets LXP and related stats if based in your Farcaster ID.
- Input Wallet Address: Allows users to enter a specific wallet address to fetch and display metrics.
- Random Stats: A fun "Surprise Me" button that fetches random user stats.
👉 Here's a link to a cast using this frame.
📚 Here is the Dune Linea API doc.
📺 Quick tutorial on how to build with Dune API
🫡 This frame is built using the Frog framework. Please head over to their document to install Frog. (For this repo, we followed the quickstart for bootstrap via Vercel, feel free to check it out.)
After git cloning, please fill in secrets within the .env
file. (See .env.sample
to see what are needed.)
Then run repo with below commands:
(If you haven't, install Node.js and install pnpm.)
pnpm install
pnpm dev
Head to http://localhost:5173/api
- See how to turn any Dune query into an API endpoint
- Check out this tutorial on how to build a Frame with Dune API (turned from query)
- For a good video on how to build Frame with Frog, check this out.
- For an intro video on Frames 101, check this out.
- Reach out to me