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
A Beginnerâs Guide to ERC-6551 đĽ
![](https://bankless.ghost.io/content/images/2024/02/https-3a-2f-2fsubstack-post-media-s3-amazonaws-com-2fpublic-2fimages-2f55ba9e47-05b3-4c89-9050-43351ae792d4_1920x1080-png.jpg)
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.
![](https://bankless.ghost.io/content/images/2024/02/https-3a-2f-2fsubstack-post-media-s3-amazonaws-com-2fpublic-2fimages-2f0a0aa786-a20d-4e5d-8205-c29843d0305c_1600x854-png.jpg)
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.
![](https://bankless.ghost.io/content/images/2024/02/https-3a-2f-2fsubstack-post-media-s3-amazonaws-com-2fpublic-2fimages-2f20ed5216-0b5a-4c87-a533-c75b3d913f8f_1600x892-png.jpg)
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 đ
![](https://bankless.ghost.io/content/images/2024/02/https-3a-2f-2fsubstack-post-media-s3-amazonaws-com-2fpublic-2fimages-2fe7bb1394-4894-4b01-814f-b0b205236828_1402x751-png.jpg)
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.
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 đ