Topics web3

ERC-5169: Bridging Web 2.0 and Web3 With Dynamic Tokens

Intermediate
web3
NFT
Explainers
5 бДр 2024 р.

The year 2015 witnessed a true revolution in the blockchain industry when Ethereum (ETH) pioneered the concept of decentralized apps (DApps). Along with the smart contracts they’re based on, DApps introduced the capability to execute programming logic directly on the blockchain. Over the following few years, Ethereum’s platform continued to drive innovation by unveiling a succession of crypto token standards.

The foundational ERC-20 standard, which underpins DApp functionality, was formally endorsed in 2017. That same year, the platform announced another game-changing innovation — the ERC-721 non-fungible token (NFT) standard. Two years later, the ERC-1155 multi-token standard was introduced on the blockchain by the Enjin (ENJ) gaming platform. These advancements in token standards and their underlying technologies continue to support the functionality of the world's largest smart contract chain.

Ethereum’s dedication to token standard innovations hasn’t diminished. In 2023, a new standard — ERC-5169 — was adopted specifically to support smart tokens. The ERC-5169 token has executable scripts and programming logic embedded within it. Its potential to completely change the way Ethereum tokens and DApps are used could lead it to emerge as a key bridge between the worlds of web3 and Web 2.0.

Key Takeaways:

  • ERC-5169 is an Ethereum token standard that facilitates the creation of tokens with embedded scripts that contain executable programming logic.

  • First proposed in May 2022, the ERC-519 token standard was formally adopted in mid-2023, with more public discussions surrounding it appearing in late 2023.

  • The ERC-5169 standard, along with two accompanying technologies — the TokenScript code framework and the Smart Layer distributed network of nodes — is a major step toward the integration of the web3 and Web 2.0 digital universes.

2401-T16454_Skinny_Banner_for_Blog_and_Learn_Row_53_728x90.png

What Is ERC-5169?

ERC-5169 is an Ethereum standard for the development of tokens that include embedded executable scripts. The script code within an ERC-5169 token turns it into a truly “smart token.” Such tokens are capable of executing complex actions, such as interacting with external platforms and devices, or carrying out rule-based operations which were previously only possible via the use of smart contracts.

The ERC-5169 token standard was first proposed in May 2022 by Smart Token Labs, an Australian blockchain technology startup founded in 2017. Smart Token Labs has also introduced a couple of associated technologies — the TokenScript development framework and the Smart Layer distributed network — to facilitate the launch and management of smart tokens.

ERC-5169 is a unique token standard because it represents the first proposal in the history of Ethereum — or the entire blockchain industry, for that matter — to attach executable code to a single token. The standard has the potential to drastically alter the way that entire ecosystems of DApps, smart contracts and blockchain crypto tokens are utilized. That’s because ERC-5169 essentially enables tokens to act as self-contained mini DApps, without the need for smart contract–based apps we’re accustomed to.

Extended Capabilities

Thanks to the executable programming logic attached to individual ERC-5169 tokens, the standard can be used to create crypto assets that can interact not only with other tokens and blockchain platforms, but also with external Web 2.0 websites, devices and products.

ERC-5169 can also facilitate the development of dynamic and complex crypto tokens, such as dynamic NFTs. While such NFTs currently utilize smart contracts for their functionality, the ERC-5169 standard makes it possible to embed the entire code responsible for dynamic changes into a token. This lets an NFT travel across different platforms that might not be compatible with each other, while still retaining all of its dynamic properties.

How Does the ERC-5169 Token Standard Work?

The ERC-5169 standard adds a new function, scriptURI(), to the token’s smart contract — the piece of code on the blockchain that allows you to issue and manage the token. This scriptURI() function contains a reference to an executable code that the ERC-5160 token can include. In this way, the token becomes a self-contained asset with embedded programming logic — essentially a mini-DApp.

The standard’s creator, Smart Token Labs, also offers two critical technologies that allow ERC-5169 tokens to interact with external web3 and Web 2.0 environments — TokenScript and Smart Layer.

TokenScript

TokenScript is a code framework that provides tools to create a front-end interface and functionality for external apps and programs to interact with ERC-5169 tokens. While the actual token contains the necessary code and programming logic, TokenScript translates these into usable functions and interfaces, adjusted for the app that utilizes the token. In essence, TokenScript is a middle layer between the end-user and the ERC-5169 token they interact with.

As a connecting layer between users and ERC-5169 tokens, TokenScript also provides additional functions to extend and modify how users interact with their tokens.

The fundamental goal behind the introduction of TokenScript is to facilitate the use of ERC-5169 assets on different platforms.

Smart Layer

Smart Layer is another technology designed to expand the adoption of ERC-5169 tokens by external platforms. Essentially it’s a distributed set of nodes that monitor and process smart token interactions with various environments — Web 2.0 platforms, blockchain-based smart contracts, mobile apps and more. Along with TokenScript, it can be used to set up smart layer tokens that conform to ERC-5169 specifications.

Smart Layer isn’t a blockchain by itself. Instead, it’s a layer of distributed nodes that acts as a connecting medium between blockchains and external platforms, such as websites or mobile apps. While TokenScript facilitates user interfaces and interactions with underlying ERC-5169 tokens, Smart Layer serves as a core processing hub, enabling seamless communication between tokens and external platforms.

Use Cases of ERC-5169

As an alternative to blockchain-based smart contracts, the ERC-5169 standard presents virtually limitless opportunities within blockchain environments as well as at the intersection of blockchain and Web 2.0. Some of the major use cases for the standard include the following.

  1. Self-contained mini-DApps: ERC-5169 tokens, equipped with embedded scripts, can function autonomously, essentially carrying out the role of traditional DApps. Any area for the use of DApps is now fair game for ERC-5169 tokens. This includes popular DApp categories such as decentralized finance (DeFi), peer-to-peer (P2P) payments, gaming, identity management and more.

  2. Dynamic NFTs: These ERC-5169 NFTs can be upgraded, modified and enhanced with new features (i.e., they act as interactive tokens). They’re particularly beneficial in blockchain gaming environments, as most in-game assets are stored in NFT format. Thanks to dynamic NFTs, in-game assets can easily be leveled up and down or have their features modified, based on the player’s choices and game progress. Static art can also be transformed into living pieces, capable of being altered or merged together with other NFT art to create new innovative NFTs.

  3. Supply chain management and authorization: Executable and upgradable NFTs offer a novel solution for supply chain management by efficiently managing product ownership and history details. For instance, an ERC-5169 NFT can be issued to a car owner upon purchase, storing ownership information and all the key details concerning the vehicle's insurance and servicing history. As the vehicle progresses through insurance procedures, claims and servicing, this NFT dynamically adjusts, reflecting the latest developments. The NFT can also interact seamlessly with insurer, repairer and dealership systems to provide real-time updates throughout the vehicle's lifecycle. In addition, it can act as an authorization token, empowering owners to control and approve relevant processes and functions concerning their car.

  4. Interaction with Internet of Things (IoT) devices: ERC-5169 tokens can enable seamless interaction with IoT devices owned by token holders, facilitating complex operations and device management. The tokens can also serve as a bridging technology connecting blockchains and IoT systems to carry over IoT data onto a blockchain.

Smart Cats

As the ERC-5169 standard is still fairly new, most of its actual applications started to emerge only in late 2023 to early 2024. Perhaps the most well-known and publicized project that makes use of ERC-5169 tokens is the Smart Cats NFT project on Polygon (POL), a collection of dynamic NFTs with a complete game embedded in each token. Owning a Smart Cat enables you to participate in a game where you care for your digital pet by grooming, feeding and cleaning it. 

You can also interact with other Smart Cat owners — and take your pet on play dates with theirs!

The tokens used in the Tamagotchi-style Smart Cats game are of the xNFT (executable NFT) type, a variation of NFTs made possible thanks to the ERC-5169 standard. As of February 2024, Smart Cats remains the most popular application of the ERC-5169 technology in the blockchain world. Nevertheless, as this technology is relatively young, expect more practical use cases and applications to emerge throughout the year.

ERC-5169 vs. Other ERC Standards

ERC-5169 is among the latest token standards to drive innovation on Ethereum. As it becomes more popular, it’s inevitable that it will be compared to other token standards utilized on the chain. The three most commonly used among these are ERC-20, ERC-721 and ERC-1155.

ERC-20

ERC-20 is the leading Ethereum standard for creating fungible cryptocurrencies, and has been instrumental in the growth of Ethereum DApps. First introduced in 2015, ERC-20 was formally adopted by Ethereum’s blockchain in 2017.

While ERC-5169 is largely designed for unique, non-fungible tokens, the ERC-20 standard is applicable strictly to fungible crypto assets.

ERC-721

ERC-721 is Ethereum’s primary standard for NFTs, crypto assets that feature non-fungibility (i.e., uniqueness) as a key property. It was introduced in 2017, quickly leading to an explosion in the popularity of Ethereum-based NFTs.

Similar to ERC-721, the ERC-5169 standard is primarily used for distinct, non-fungible tokens. However, ERC-721 NFTs are typically static, rely on on-chain smart contracts for their functionality, and don’t feature any of the embedded scripts or executable logic found in ERC-5169 NFTs.

ERC-1155

The ERC-1155 Ethereum standard can be used for creating both fungible and non-fungible crypto tokens via the same smart contract. It’s widely used by applications that need to have dual-mode (fungible and non-fungible) functionality within the same environment or for the same operational purpose. For instance, blockchain gaming platforms may choose to use the standard to enable fungible in-game crypto assets for loyalty points, and NFTs for loyalty categories.

Similar to ERC-20 and ERC-721 (but unlike ERC-5169), the ERC-1155 standard doesn’t provide a function to embed executable scripts within tokens.

The Future of the ERC-5169 Token Standard

ERC-5169 might change the blockchain industry in the same profound ways as ERC-20 and ERC-721. For the first time in Ethereum’s history, executable and self-contained smart tokens are now an option for developers. In a way, such functionality could actually cannibalize further adoption of smart contracts and DApps: let’s not forget that smart tokens aren’t an enhancement for these technologies, but rather a complete, self-reliant alternative to them.

With ERC-5169, we might just be starting to move away from Ethereum’s blockchain being a DApp hub to its becoming a web of individual smart tokens. Moreover, this technology isn’t limited to Ethereum alone, as the Smart Layer network enables the use of smart tokens on any EVM-compatible chain. For example, the most prominent ERC-5169 application, Smart Cats, has chosen Polygon as its primary hosting environment. In the future, it’s likely that the standard will be expanded to include the majority of EVM platforms. We might also see the replication of ERC-5169’s executable token concept on other, non-EVM smart chains. 

But the most radical transformation that will arise from the ERC-5169 standard is the convergence of web3 and Web 2.0 technologies. Because all of their programming logic can be contained within one token, ERC-5169 assets will easily be able to traverse blockchains and interact with Web 2.0 platforms. 

Skinny_Banner-1600x400.webp

The Bottom Line

For years, discussions have centered on the lack of effective interaction and interoperability between web3 and Web 2.0. The ERC-5169 standard is a major step toward resolving these issues. The standard will help combine web3's security and tokenization advantages with the widespread usage and popularity of Web 2.0.

Thanks to this versatile token standard, the distinction between web3 and Web 2.0 may soon blur, and these two distinct digital worlds might even converge into a unified entity, powered by the ERC-5169 functionality. 

Moreover, who wouldn’t like to own an NFT that’s a complete game or application in itself? This prospect alone is so enticing that it’s hard to see ERC-5169 not gaining popularity and widespread adoption in the blockchain industry.

#Bybit #TheCryptoArk