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,763086 2,05%
aave
Aave (AAVE) 86,26 3,43%
the-graph
The Graph (GRT) 0,252394 2,03%
kusama
Kusama (KSM) 28,21 3,39%
waves
Waves (WAVES) 2,27 3,35%
dash
Dash (DASH) 28,05 0,35%
bitcoin
Bitcoin (BTC) 59.759,16 1,51%
ethereum
Ethereum (ETH) 3.089,01 5,93%
cardano
Cardano (ADA) 0,441403 2,67%
tether
Tether (USDT) 0,934303 0,12%
xrp
XRP (XRP) 0,487634 0,54%
solana
Solana (SOL) 133,96 4,79%
polkadot
Polkadot (DOT) 6,44 2,27%
usd-coin
USDC (USDC) 0,934288 0,01%
dogecoin
Dogecoin (DOGE) 0,140003 2,32%
uniswap
Uniswap (UNI) 7,50 3,96%
terra-luna
Terra Luna Classic (LUNC) 0,000101 3,10%
litecoin
Litecoin (LTC) 78,87 3,20%
chainlink
Chainlink (LINK) 13,35 0,82%
bitcoin-cash
Bitcoin Cash (BCH) 451,35 1,26%
algorand
Algorand (ALGO) 0,186451 0,27%
matic-network
Polygon (MATIC) 0,694856 6,34%
stellar
Stellar (XLM) 0,107710 1,59%
cosmos
Cosmos Hub (ATOM) 7,90 2,03%
filecoin
Filecoin (FIL) 5,60 2,47%
tron
TRON (TRX) 0,112440 1,14%
ethereum-classic
Ethereum Classic (ETC) 26,83 5,97%
dai
Dai (DAI) 0,934077 0,00%
tezos
Tezos (XTZ) 0,949300 0,69%
monero
Monero (XMR) 115,78 4,03%