Back to Browse

Farcaster Transaction Frames - Local Debugging + Mint NFT

1.1K views
Apr 16, 2024
14:41

Learn how to create a Transaction Frame that will mint an ERC-1155 NFT directly from your Warpcast feed. We'll use Frog.fm to create our Farcaster frame and also Ngrok to hook up our local dev server to the official Warpcast Frame Validator. The NFT smart contract is deployed on the Base Sepolia testnet so we can test it without using real funds. Since Frog.fm is built on top of Viem, we can use the familiar API to connect and interact with our NFT smart contracts. We'll import the ABI and supply the necessary arguments in order to trigger the claim function on our smart contract. We also hook up a Farcaster Hub so that our Transaction Frame is verified and secured. GitHub Repo: https://github.com/ChangoMan/frog-transaction-frame/blob/main/api/index.tsx Frog.fm: https://frog.fm/ Thirdweb: https://thirdweb.com/ Join me on Warpcast: https://warpcast.com/~/invite-page/341454?id=497d9b60 00:00 - Intro 00:39 - Setup Frog.fm 02:18 - Trusted Data with Farcaster Hub 03:20 - Using Ngrok for Localhost Testing 05:24 - Create A Transaction Frame 07:57 - Importing ABI and Smart Contract 10:02 - Hook Up Claim NFT Function 12:12 - Testing With Warpcast Frame Validator

Download

0 formats

No download links available.

Farcaster Transaction Frames - Local Debugging + Mint NFT | NatokHD