ERC-6551 use case for blockchain games

Author: Loot Adventure Translator: MetaCat

In 2017, the ERC-721 standard was introduced to Ethereum, establishing a new way to tokenize digital assets. NFT has been widely used in game items, digital art, music, virtual land, identity and other fields. In recent years, developers have been exploring ways to make them more dynamic and interactive, with ERC-6551 gaining attention as something that expands the possibilities for NFT use.

**ERC-6551 is a system that provides smart contract accounts for each ERC-721 token (NFT). **The relevant smart contract is called a Token Bound Account, abbreviated as TBA, indicating that it is "bound" to ERC-721. Control of the token-bound account belongs to the holder of the linked NFT. This means that ERC-6551 can be regarded as a technology for establishing contract accounts exclusive to specific NFT holders. It can be thought of as a technology that turns NFTs into wallets - essentially "NFTs as wallets". Since it is backwards compatible with ERC-721 NFTs, it can be applied to all existing NFTs that adhere to the ERC-721 standard.

The following are some cases of combining the blockchain game field with ERC-6551

Onboarding Tools

source:

We'll explore the potential of ERC-6551 as an onboarding tool for Web3 services. By leveraging Token Binding Accounts (TBA), we can package NFTs and FTs, taking advantage of the functionality that links them to a single NFT. For newcomers, preparing the necessary tokens or NFTs when trying to use Web3 services can be a challenge. In the context of mass adoption, it is unrealistic to expect every user to first purchase tokens on CEX, transfer them to a non-custodial wallet, and then purchase the desired NFT on the market**. This is where TBA comes in. Service providers can package the NFT or FT required for their services, link it to the NFT, and send the NFT to users, making it easier for users to get started. Specifically, in blockchain gaming, we could imagine packaging initial characters and game-specific tokens.

Portfolio Market

source:

Similar to the Onboarding tool, using the functionality of packaging NFTs and FTs, portfolio trading scenarios can be considered. This means that individuals can build a portfolio using NFTs and FTs that they expect to appreciate in value, hold them within a TBA, and trade the portfolio by trading the NFTs associated with the TBA. Taking full advantage of the fact that TBA is a smart contract, you can also trade assets that have been invested in a pledge pool or similar assets within TBA. Without disclosing the contents of the portfolio and only disclosing investment performance through zero-knowledge proof, we believe it is feasible to establish a portfolio trading market through NFT transactions**.

Using ERC-6551 for chain abstraction

As mentioned in the "Cross-chain Compatibility" of the EIP, when configuring the Token Binding Account (TBA), the "Chain ID" can be set to the value corresponding to the NFT from a different chain. Additionally, the addresses generated for TBA are consistent across all chains. To actually take advantage of a TBA deployed across multiple chains, users need to verify that they hold a specific NFT on a given chain, which requires the use of cross-chain communication tools such as Layerzero, chainlink-ccip, or Lit.

We are excited about the potential of ERC-6551 combined with cross-chain functionality. Simply put, assets on all EVM-compatible chains can be aggregated under a single NFT. This reinforces our vision of NFTs as agents, maximizing the amount of information they can hold. As information is maximized, countless possibilities for composability and interoperability emerge.

ERC-6551 usage in blockchain games

Finally, let’s look at how ERC-6551 can be used in blockchain games. Take Loot Adventure as an example. Loot Adventure is a blockchain game with the theme of "pursuing the unique fun of blockchain". It has three major characteristics: interoperability, composability, and accumulation. An important technical element of the game is its use of ERC-6551.

The basic process is as follows:

① Apply ERC-6551 to Loot NFT and deploy token-bound accounts (TBA) across multiple chains.

② Strengthen the character's Loot NFT by equipping NFT or FT to the deployed TBA.

③ Use the enhanced character to explore the dungeon and earn NFT as "experience points", which will be accumulated in TBA in the form of SBT.

④ Use the enhanced characters to fight in the arena and earn FT.

Because we deploy TBA across chains, we can collaborate with NFT projects and blockchain games on all EVM-compatible chains, providing utility as a character device.

In terms of interoperability, we can leverage the assets of existing Web3 projects. From a composability perspective, Loot NFTs are extended for use in blockchain games. In terms of accumulation, the experience points gained through the game are accumulated in the character's TBA. ERC-6551 can be fully utilized in these three characteristics.

View Original
This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
  • Reward
  • 1
  • Share
Comment
0/400
JustLoveMemeCoinsvip
· 2023-09-12 11:55
Don’t buy golden finance with garbage coins (;`O´)oGo away
View OriginalReply0
Trade Crypto Anywhere Anytime
qrCode
Scan to download Gate app
Community
English
  • 简体中文
  • English
  • Tiếng Việt
  • 繁體中文
  • Español
  • Русский
  • Français (Afrique)
  • Português (Portugal)
  • Bahasa Indonesia
  • 日本語
  • بالعربية
  • Українська
  • Português (Brasil)