How to create a Token Bound Account NFT – ERC6551 + ERC4337

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

(Visited 17 times, 1 visits today)

You might be interested in

LEAVE YOUR COMMENT

Your email address will not be published. Required fields are marked *

eos
EOS (EOS) 0,738760 6,80%
aave
Aave (AAVE) 81,54 1,44%
the-graph
The Graph (GRT) 0,242610 4,76%
kusama
Kusama (KSM) 30,07 2,12%
waves
Waves (WAVES) 2,37 0,20%
dash
Dash (DASH) 27,77 3,58%
bitcoin
Bitcoin (BTC) 61.010,23 3,63%
ethereum
Ethereum (ETH) 2.915,38 1,78%
cardano
Cardano (ADA) 0,439431 3,65%
tether
Tether (USDT) 0,940455 0,04%
xrp
XRP (XRP) 0,471280 1,22%
solana
Solana (SOL) 135,64 6,19%
polkadot
Polkadot (DOT) 6,43 2,15%
usd-coin
USDC (USDC) 0,939183 0,02%
dogecoin
Dogecoin (DOGE) 0,143500 2,59%
uniswap
Uniswap (UNI) 7,07 6,00%
terra-luna
Terra Luna Classic (LUNC) 0,000096 2,24%
litecoin
Litecoin (LTC) 76,34 0,39%
chainlink
Chainlink (LINK) 12,97 3,36%
bitcoin-cash
Bitcoin Cash (BCH) 450,82 0,81%
algorand
Algorand (ALGO) 0,164390 1,72%
matic-network
Polygon (MATIC) 0,639000 0,01%
stellar
Stellar (XLM) 0,105937 2,66%
cosmos
Cosmos Hub (ATOM) 7,77 1,05%
filecoin
Filecoin (FIL) 5,87 5,61%
tron
TRON (TRX) 0,102544 0,20%
ethereum-classic
Ethereum Classic (ETC) 24,55 0,81%
dai
Dai (DAI) 0,941394 0,23%
tezos
Tezos (XTZ) 0,922174 2,14%
monero
Monero (XMR) 108,77 0,79%