In this video, we’ll go over how to create a token bound account with ERC6551 support. We will build an app where a user can claim an NFT with their personal wallet. That NFT will then have an ERC4337 wallet (smart wallet) created for it where it can claim an ERC20 and ERC1155 token. Those tokens will not be owned by your personal wallet, but owned by the NFTs wallet and the NFT.
Token Bound Accounts (ERC6551): https://eips.ethereum.org/EIPS/eip-6551
Smart Contracts:
NFTDrop (ERC721): https://thirdweb.com/thirdweb.eth/DropERC721
TokenDrop (ERC20): https://thirdweb.com/thirdweb.eth/DropERC20
EditionDrop (ERC1155): https://thirdweb.com/thirdweb.eth/DropERC1155
TBA Implementation: https://thirdweb.com/0x7fDae677aA6f94Edff9872C4b91D26407709c790/TokenBoundAccount
Guide: https://blog.thirdweb.com/guides/create-token-bound-accounts-erc6551/
Repo: https://github.com/thirdweb-example/token-bound-account-app
App Demo: https://token-bound-account-app.thirdweb-preview.com/
Join our Community of over 30,000 Web3 builders: https://discord.gg/thirdweb
thirdweb Official Site: https://thirdweb.com/dashboard
thirdweb Twitter: https://twitter.com/thirdweb
Timestamps:
00:00 Introduction
02:23 Demo of Token Bound Account NFT
06:10 NFTDrop (ERC721)
10:13 TokenDrop (ERC20)
11:55 EditionDrop (ERC1155)
14:25 Token Bound Account Implementation contract
15:20 thirdweb API key
16:15 Setup application
21:30 Claiming NFTDrop (ERC721)
25:38 Display NFT with NFTGrid
34:15 NFT detail page
40:45 Create TBA (ERC4337 for NFT)
47:04 ERC20 + ERC1155 claiming
56:30 Conclusion