Metaversal is a Bankless newsletter for weekly level-ups on NFTs, virtual worlds, & collectibles
Dear Bankless Nation,
ERC-721 is the token standard that popularized NFTs on Ethereum as unique, verifiable digital assets.Β
But what if we could turn our simple NFTs into full-fledged Ethereum accounts?
Now itβs possible! Thatβs because a new token standard, ERC-6551, just arrived, and it propels Ethereum NFTs into a new realm of utility and functionality.Β
Your favorite collectible can now directly own assets, interact with web3 apps, and better serve as your onchain identity. Weβre stepping into an exciting era here, so letβs get you up to speed on the basics of ERC-6551 for todayβs post!
-WMP
π¦Β Thanks toΒ MetaMask Portfolio π¦
π Now you can stake your ETH via MetaMask β¨
A Beginnerβs Guide to ERC-6551 π₯
The basics of ERC-6551
The relevance π§ Β
ERC-6551, a new token standard, launched on the Ethereum mainnet on May 7th, 2023. It significantly enhances the capabilities of ERC-721 NFTs by allowing them to operate as their own smart contract accounts, making them more versatile and functional than ever before.
The why β
The motivation for ERC-6551 comes from the growing use of NFTs as a form of onchain identity. Until now, ERC-721 tokens couldn't act as agents or own other onchain assets, which was out of sync with real-world use cases of non-fungible assets.
Accordingly, ERC-6551 addresses this by granting each ERC-721 token the full capabilities of an Ethereum account, while maintaining compatibility with existing ERC-721 contracts. This is done by deploying unique smart contract accounts, termed "token bound accounts,β for each ERC-721 token via a permissionless registry.Β
Note that itβs also possible for a single NFT to own multiple token bound accounts via ERC-6551. In this sense, an NFT can now contain multiple wallets and so forth.Β
The how π©
The system introduced in ERC-6551 is primarily made of 1) a permissionless registry for deploying token bound accounts, and 2) a standard interface for interacting with these accounts.Β
The what πͺͺ
Anything you can do with your regular Ethereum wallet, you can now do with an ERC-721 NFT thanks to the ERC-6551 standard. Of course, the basics would be using your NFT to store other NFTs, trade ERC20s, etc. Yet this is just scratching the surface!
For example, letβs say youβve been racking up NFT wearables in a new web3 game. Instead of holding these in your regular Ethereum wallet, you can now store them in the NFT of your choice, e.g. your player avatar from that same game. Not only is this funner and more familiar on a psychological level, but later if youβre ready to move on from the game, you could consider selling the player avatar + accrued wearables as one cohesive unit on an NFT marketplace via ERC-6551.Β
Thatβs just one hypothetical illustration, but there really are tons of possibilities here. As another example, PFP projects can now incentivize and enshrine focus on the expanded utility of their collectibles by airdropping rewards to any holders in their collection with token bound accounts.Β
Also, the fact that ERC-6551 allows NFTs to have multiple token bound accounts and supports multi-chain token bound accounts offers additional layers of utility that are sure to kick off new waves of experimentation and innovation throughout the NFT space.Β
The caveats π€
While all ERC-721 NFTs are supported by ERC-6551, Ethereum NFTs that predate the ERC-721 standard arenβt. For example, the original unwrapped version of CryptoPunks arenβt, though the modern wrapped versions (βWrapped Punksβ) are.
As for security considerations, ERC-6551 raises two main safety implications that will require some vigilance around the NFT ecosystem:
π¨ Avoiding Fraudulent Behavior: Decentralized marketplaces need to be wary of potential scams. For instance, a scenario where a user sells an NFT that supposedly holds a certain amount of ETH, only to withdraw the ETH after the sale, leaving the buyer with an empty account. Some suggested ways to prevent such scams include tracking token bound account nonces and ensuring asset commitments remain intact during a transaction. However, preventing fraud is not directly addressed in ERC-6551 and requires implementation at the marketplace level or via external smart contracts.
π Preventing Ownership Cycles: ERC-6551 could potentially lead to a situation where an NFT is transferred to its own token bound account, causing all assets in that account to become permanently inaccessible. This forms an "ownership cycle" which is complex to prevent onchain due to the infinite search space required. While it's outside the scope of ERC-6551 to enforce prevention of these cycles, it's recommended for apps to take interface measures to limit such transfers.
What people are saying π¬
β’ Benny Giang, ERC-6551 co-author and co-founder of Future Primitive: βThe idea is simple ... what if NFTs had their own wallets? Inspired by Soul Bound Tokens (SBTs) our idea is the inverse and we call it Token Bound Accounts (TBAs) Instead of an NFT bounded to a wallet, we have wallets bounded to NFTs.β
β’ Gami, Nouns DAO member and founder of Gnars DAO and Tings DAO: βERC6551 (Token Bound Accounts) is how Iβve thought about my Nouns ever since joining [Nouns DAO]. Hope to see us get behind it somehow β¦ Makes the βentreprenounerβ concept entirely possible. Nouns could be sold along with what theyβve acquired and built during their journey.β
β’ 0xBeans.eth, Solidity engineer: βERC-6551 is probably one of the more interesting application level Ethereum Improvement Proposals β¦ A lot of interesting properties arise such as tradable accounts β¦ ENS is one step towards onchain identities, full Ethereum accounts owned by NFTs is the next step in my opinion. This EIP goes hand in hand with EIP4337 (account abstraction). The reference implementation essentially create2s ETH accounts and bounds them to a token.β
How to use ERC-6551 π
Tokenbound is an open-source suite of tools centered around the ERC-6551 standard, and one of the services it provides is an account explorer interface that you can use to deploy ERC-6551 accounts and interact with others.Β
If youβre interested in deploying a token bound account to your NFT of choice, you would follow these steps:
Go to https://tokenbound.org and connect your wallet of choice
Click the βMy NFTsβ button
Select your desired NFT and press the βDeploy Accountβ button
Confirm the deployment transaction with your wallet, and wait for the transaction to complete
Thatβs it! Youβll now see a βUse Walletβ option in the dashboard of your selected NFT; at the time of writing I received a βComing soonβ¦β message, so look for full functionality to be rolled out in short order
Indeed, keep in mind that ERC-6551 just arrived on mainnet, so the tooling around it is just beginning to be developed. Expect to see all sorts of βuser experienceβ and βuser interfaceβ advancements here going forward.Β In the meantime, I recommend taking some time to review the FAQ at the bottom of tokenbound.org before diving in.
DougO has a 2,200% return on investmentΒ in this bear market π
Why? Heβs a Bankless Citizen β
The big picture π€―
The arrival of ERC-6551 is a historic milestone in the NFT space and opens up a world of new possibilities by turning NFTs into their own smart contract accounts. This brings considerably more versatility to NFTs, but it also aligns them more closely with real-world use cases, making them more practical and relatable for users. Zooming out, watch for increased ERC-6551 adoption and experiments in the months ahead!
Additionally, now anytime skeptics say NFTs can just be βright-click saved,β we now have token bound accounts within NFTs that make this charge that much more baseless. You can copy and save a picture, sure, but you canβt copy and save the contents within π
Action steps
Explore ERC-6551: check out Tokenbound.org π
Catch up on my previous weekly roundup: L2 NFTs Please π
Author Bio
William M. Peaster is the creator of Metaversalβa Bankless newsletter focused on the emergence of NFTs in the cryptoeconomy. Heβs also a senior writer for the main Bankless newsletter and a contributor to NFT curation platform JPG!
A Bankless Citizen β turned $264 into $6,077 last year. A 22x ROI π in a bear market!
π Together with π¦ MetaMask Portfolio π¦
You can now stake your ETH through MetaMask with liquid staking providers, Lido and Rocket Pool. Head over to MetaMask Portfolio to get started! You can also view your assets in one place and discover other features such as Buy, Swap, and Bridge.
Not financial or tax advice.Β This newsletter is strictly educational and is not investment advice or a solicitation to buy or sell any assets or to make any financial decisions. This newsletter is not tax advice. Talk to your accountant. Do your own research.
Disclosure.Β From time-to-time I may add links in this newsletter to products I use. I may receive commission if you make a purchase through one of these links. Additionally, the Bankless writers hold crypto assets. See ourΒ investment disclosures here.
Thank you for the article. The second caveat sounds terrifying - it will be interesting to see how this gets addressed down the road.
Thank you, William. So clear and well-written.