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:
[ Ссылка ]
Frog.fm:
[ Ссылка ]
Thirdweb:
[ Ссылка ]
Join me on Warpcast:
[ Ссылка ]
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
Ещё видео!