How To Create a Tokenbound Account (ERC-6551)

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

Pinata

Pinata

Күн бұрын

Пікірлер: 26
@thehogchop
@thehogchop Жыл бұрын
Thanks for the helpful video. One thing I didn't hear mentioned in the video and might be helpful for people to know: you do not need to deploy your own ERC6551 contract - the group who proposed EPI6551 have deployed this contract across many chains already. This means you can use their website to generate a wallet for any NFT you currently own. As I understand it, you'd only want to go down this route if you wish to implement custom wallet features for the NFT's.
@BlockchainDev101
@BlockchainDev101 Жыл бұрын
how can we be sure they have deployed the contracts on the networks we are building on?
@Gandarufu
@Gandarufu Жыл бұрын
Thanks so much for the tutorial! I watched a few so far, and I never fully understood what's going on, until I found your video! Appreciate it!
@pinatacloud
@pinatacloud Жыл бұрын
Glad you found this video helpful!!
@Gandarufu
@Gandarufu Жыл бұрын
@@pinatacloud Any hint on how I could deploy a TBA for every NFT of a 721 contract directly after mint? Been trying to call the registry from within the mint function, after _safeMint, so far without luck. Or would that a bad idea? :D
@pinatacloud
@pinatacloud Жыл бұрын
@@Gandarufu Good question! Checking with Kelly to see if she has any insight. Will reply again when I have an answer!
@Gandarufu
@Gandarufu Жыл бұрын
@@pinatacloud I think I got it working now. just created an interface of the registry and called the createaccount on it from within the mint function. which got me thinking... maybe the NFTs don't even need to be minted before you calculate the address. if so, I could set up the TBAs in advance. will test this tomorrow. thanks for your input anyways, I really appreciate it!
@pinatacloud
@pinatacloud Жыл бұрын
@@Gandarufu Oh nice! Let us know if it ends up working after you test
@vanijatkosolomichev9452
@vanijatkosolomichev9452 Ай бұрын
function receive() is NOT for erc20 / 721 or any other erc. This function must be implemented to be able to receive native coins, like eth, bnb, matic etc
@9712
@9712 Жыл бұрын
hey you is there a way to mint a erc6551 directly from the start?
@pinatacloud
@pinatacloud Жыл бұрын
Hey there! Might depend by what you mean. In order for there to be an ERC-6551 wallet for an NFT, the NFT has to be there first! There currently isn't a way to make the wallet by itself, its generated based on the NFT you are creating it for. You could pre-mint ERC-721 NFTs and give them ERC-6551 token bound wallets before you sell them or have people collect them though.
@9712
@9712 Жыл бұрын
@@pinatacloud thank you for the quick response, so basically I need to create a function that mints the erc 721 token and instantly upgrade it to a erc6551? Is there an existing function that already does this?
@pinatacloud
@pinatacloud Жыл бұрын
@@9712 No problem! And yes you are on the right track. It doesn't "upgrade" the existing ERC-721 NFT but rather just gives it a wallet. Thankfully the process of doing this has become much easier; I would recommend checking out the tokenbound sdk here: docs.tokenbound.org/sdk/installation
@xWe2s
@xWe2s Жыл бұрын
very chaotic.. why in the end the account contract receive 9 eth and the `to` receive just 1 eth?! And.. how and why the token account can operate funds from the owner/user?!
@valentineorga
@valentineorga 4 ай бұрын
That confused me as well. I'd expect the account to be funded before it can make transfers. Maybe that happened in-sync
@neilcollier9075
@neilcollier9075 Жыл бұрын
Very nice tutorial! After we have a TBA setup the part that confuses me is how to then *use* the TBA as the NFT? This would be great to see as a new video and help a lot of people I think! For example, say I have a TBA owned by address 0x123 that is linked to token contract XYZ with token id 1. I want to "login" to a metaverse game as the NFT and while in the game have the TBA do on-chain operation like give it in-game items (which are also NFTs) or in-game gold and rewards (ERC 20 tokens). In this scenario how would you authorize the TBA initially in login? Since the TBA itself gives you no private keys I assume you must login via a wallet as the owner account? I had read somewhere that this new standard did not require using wallets thanks to ERC-4337 so I don't get how that plays into the mix... Also, say when in the game you then want to have the TBA send tokens to another player in the game (say to purchase or trade an item from their account to yours), how would you do that securely? Would it require signing transaction again as the owner account via a wallet integration like Metamask? Somehow I thought this standard would alleviate needing wallets and private keys after the TBA was created...
@pinatacloud
@pinatacloud Жыл бұрын
Thanks for watching and thanks for the feedback! We are still experimenting with erc 6551 and TBA's as well, so these questions will help us. We'll have more videos up on this topic soon!
@cryptoleek
@cryptoleek 20 сағат бұрын
No one can understand. I will do a better video.
How to Use Midjourney AI
6:48
Pinata
Рет қаралды 240
Building with Token Bound Accounts (ERC 6551) - Jayden Windle
21:00
Sigma girl VS Sigma Error girl 2  #shorts #sigma
0:27
Jin and Hattie
Рет қаралды 124 МЛН
УЛИЧНЫЕ МУЗЫКАНТЫ В СОЧИ 🤘🏻
0:33
РОК ЗАВОД
Рет қаралды 7 МЛН
«Жат бауыр» телехикаясы І 30 - бөлім | Соңғы бөлім
52:59
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 340 М.
How To Build an App NFT
31:49
Pinata
Рет қаралды 819
OAuth 2.0 and OpenID Connect (in plain English)
1:02:17
OktaDev
Рет қаралды 1,8 МЛН
[Webinar] How to Build a Modern Agentic System
1:00:55
Arthur
Рет қаралды 8 М.
Blockchain 101 - A Visual Demo
17:50
Anders Brownworth
Рет қаралды 2,8 МЛН
NestJs Course for Beginners - Create a REST API
3:42:09
freeCodeCamp.org
Рет қаралды 1,7 МЛН
ERC4626 Vault Smart Contract tutorial | DeFi Vault tutorial
1:05:35
Block Explorer
Рет қаралды 10 М.
How to Use the Groups API
14:23
Pinata
Рет қаралды 7 М.