How to Build a Farcaster Frame that Mints NFTs

  Рет қаралды 3,842

Pinata

Pinata

Күн бұрын

Пікірлер: 16
@MrZozord
@MrZozord 7 ай бұрын
Thanks a lot for this amazing tutorial ! Silly question : In order for our frame to be ''live'' on Farcaster (for it to be casted) we just need to include the url inside our cast and Farcaster will detect that it's a frame and display the response of that url ?
@pinatacloud
@pinatacloud 7 ай бұрын
No problem! :) All you have to do is paste the url in the frame and it will pick it up! Might be helpful to test in the validator warpcast.com/~/developers/frames
@codebushi
@codebushi 8 ай бұрын
Thanks for the great tutorial! One question I had: on the Farcaster docs, it suggests not using "body.untrustedData" since it can be spoofed. Is there a way to use the "/v1/validateMessage" endpoint and pull from "body.trustedData"? It doesn't seem like the Pinata Hub API has this documented.
@pinatacloud
@pinatacloud 8 ай бұрын
No problem! You can actually do this inside the FDK docs.pinata.cloud/farcaster/fdk#validateframemessage
@adrian2928
@adrian2928 7 ай бұрын
Great tutorial, have built out an amazing frame to mint NFTs thanks to you :) However, with this method (using "balanceOf") people can just transer the NFT to a different address and mint another one. Is it possible to have some sort of "hasEverOwned" function instead that checks the addresses full transaction history?
@pinatacloud
@pinatacloud 7 ай бұрын
Glad you enjoyed it! :) You could probably make a change in the smart contract to make a mapping of everyone who has minted to prevent that, however it doesn’t necessarily stop them from using another account / wallet. You might have to be creative depending on your use case!
@adrian2928
@adrian2928 7 ай бұрын
@@pinatacloud thanks mate, great tip. Was going about it backwards trying to use the alchemy API to trace transaction data. Got it to work first try using the contract mapping. Thanks again and keep up the great tutorials!
@mansijoshi2574
@mansijoshi2574 7 ай бұрын
Hey. Calling post api of mint nft is working fine. But when I check that contract address in base scan I am not able to see the token which should minted into wallet. BTW great tutorial. Thank you.
@pinatacloud
@pinatacloud 7 ай бұрын
Thank you! 🙏🏻 It sounds like it could be a few things. One of them that happens a lot is differing env variables, so one might be in dev but a different one in Vercel/prod. If you’re willing to debug a bit feel free to email us! steve@pinata.cloud
@mansijoshi2574
@mansijoshi2574 7 ай бұрын
Yup. Got it. Thanks a lot.@@pinatacloud
@HugoMartiMusic
@HugoMartiMusic 7 ай бұрын
i am getting "Error: private key must be 32 bytes, hex or bigint, not string" even putting 0x in front at the .env.local. any idea what could be wrong?
@pinatacloud
@pinatacloud 7 ай бұрын
I would start with console logging the env variable itself to make sure it’s getting processed in the code then go from there!
@knowwhatiswhat4276
@knowwhatiswhat4276 5 ай бұрын
🥂🔷
@onyx_dev
@onyx_dev 8 ай бұрын
Pls who else is getting this error with viem package, "Error: private key must be 32 bytes, hex or not string at normPrivateKeyTo Scaler😢
@pinatacloud
@pinatacloud 8 ай бұрын
Hey there! You might need to add 0x in front of the private key inside .env.local file!
@onyx_dev
@onyx_dev 8 ай бұрын
@@pinatacloud it solved it 😄, Thank you.
How to Make a Frame on Farcaster
13:05
Pinata
Рет қаралды 16 М.
How to build a Farcaster Transaction Frame
41:48
thirdweb
Рет қаралды 2,3 М.
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 2,5 МЛН
PRANK😂 rate Mark’s kick 1-10 🤕
00:14
Diana Belitskay
Рет қаралды 11 МЛН
这是自救的好办法 #路飞#海贼王
00:43
路飞与唐舞桐
Рет қаралды 132 МЛН
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 86 МЛН
ChatGPT Desktop: NEW Feature! is it any good?
14:15
Samer Haddad
Рет қаралды 62
This is how I scrape 99% websites via LLM
22:44
AI Jason
Рет қаралды 79 М.
David Furlong: Frames, Frames.js and Farcaster
59:38
Superfluid
Рет қаралды 165
Farcaster Frames Beginner's Guide - Next.js & Local Testing
15:20
Frog.fm Tutorial - Easy Framework For Farcaster Frames
22:04
Code Bushi
Рет қаралды 2,6 М.
How to build a Farcaster Frame - NFT Mint
46:56
thirdweb
Рет қаралды 5 М.
Farcaster Transaction Frames - Local Debugging + Mint NFT
14:42
Your NFTs are Actually, Finally, Totally Worthless
13:50
Crypto Gorilla
Рет қаралды 6 М.
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 2,5 МЛН