ERC721 vs. ERC721A

Maciej Zieliński

29 Mar 2022
ERC721 vs. ERC721A

Technology can be a great solution for many businesses and companies. Unfortunately, one of the unfortunate side effects is the amount of various technical jargon, which may be unintelligible to the average person. For the end-user, NFT often means little more than a decentralized collectors' item or a work of digital art. You can enjoy this industry without understanding how it works. But the trends in blockchain technology can be fascinating even for those who are not involved with creating it. Why are ERC721 and ERC721A so important in NFT? What makes it special and why should we learn about this technology? We're writing about this below!

What is ERC721?

Although blockchain technology is decentralized, we need a common language which will allow us to understand the data contained within it. As such, token standards like ERC721 become essential. It is a standard which works in a similar way to how all ports or plugs on various devices work. It is worth noting, for example, that formats such as PNG i JPEG, which are commonly associated with NFT, are by themselves image standards.
ERC721 is an extremely popular token standard for creating non-fungible tokens – NFT – on blockchains, such as Ethereum and Polygon. The letter ‘E’ in ‘ERC721’ stands for ‘Ethereum’ and is not the NFT standard that runs on blockchains that are incompatible with Ethereum portfolios such as Solana and Tezos.

​What makes ERC721 compliant tokens useful?

Below we outline some of the advantages of this solution:

  • Each token is unique (previously mentioned non-fungibility)
  • Each token can be transferred or sold
  • Owners can authorize other smart contracts to manage tokens

In addition, each of them is crucial to ensuring that NFT markets, such as OpenSea and LooksRare, can operate as intended. It should be pointed out that smart contracts are simply applications that live within blockchain technology. Seems complicated? It can be described in an even simpler way: ERC721 is a standardized way of creating unique blockchain tokens, which can be traded at markets.

​What is ERC721A?

Software developers in crypto typically use existing code libraries to simplify the development process of a project. When you write a code that's in the blockchain, there's even more pressure to use a battle-proven, existing code wherever possible, because blockchain technology prevents any code editing! In the NFT sector, a single open source code was widely accepted in order to enable the use of ERC721. Then there was the “Azuki” project, which quickly gained recognition in the NFT sector. In addition to the NFT issue itself, the project has created a new implementation of ERC721A.
The implementation of ERC721A is not meant to change the token standard. Its main purpose is to fit the token perfectly, but this task requires a number of other standards to be met, as opposed to ERC721 which has been used to date.
This has led to the reduction of the amount of gas needed to mint new NFT (especially those that are minted in batches).
The gas costs incurred in transferring NFT based on ERC721A to other persons at the original owner's prices are slightly higher. Overall, the gas savings that ERC721A can provide compared to ERC721 are excellent, but this solution cannot be implemented everywhere. For example, entities that do not mint NFT in bulk will still spend a significant amount of gas if we consider the transfer costs.

Let us remember that NFT provides many limitless possibilities not only for art, music, or sports. It is important to know and understand ERC721 and ERC721A, as this allows us to understand what NFT really is from its very basics. This makes us more aware of the direction in which this sector is developing. It is worth noting that while both implementations are important, they are neither the first nor last elements of NFT. They are the benchmark to follow.

How does ERC721A work?

ERC721A adopts specific conditions which then affect the smart contract project. This impact makes the following things happen:

  • Token IDs should always grow steadily – starting from zero. Currently, many NFT projects fulfill this condition.
  • The reduction of the gas costs related to minting NFT is the most important part of NFT production.

With these assumptions, ERC721A makes the following optimization of contracts:

  • Reduces the unused space, which is used to store metadata from tokens.
  • Limits ownership to one coin from the entire NFT batch.

Why is ERC721A so important?

Because it allows us to understand how high the gas charges really are, and what they result from! Reducing your work to sending transactions saves energy. At this point, we should emphasize that blockchain generates 2 types of transactions – reads and writes.

  • Write – occurs when we are doing something in a blockchain and its condition changes (for example, we sell NFT).
  • Read – it can be said that this is a review of the transaction file.

Users who use blockchain technology incur higher write costs than read costs. Therefore, if we reduce the pool of write information or transaction transfer requirements, we will reduce the cost of minting NFT.

What risks are involved with using ERC721A contracts for generating multiple NFT transactions?

TransferFrom and safeTransferFrom transactions cost more gas, which means that NFT can cost more from the moment of its minting. We should emphasize that using ERC721A leads to an increase in performance without the need to set owners of particular token ID.

For example, in the picture below there are two calls to mint a batch, one by Marcus to mint chips #100, #101, and #102 in one call, and the other by Brutus to mint chips #103 and #104

The above diagram shows that ERC721A must set up the property metadata twice, instead of 5 times – once for the Marcus package and once for the Brutus package. This is not so easy because by transferring a tokenID that does not have an owner address, the contract must create actions that include all tokenID’s in order to verify the original NFT owner. This is because the original owner has the right to move the token and set it to a new entity. Below we present a graph associated with this:

ERC721

The method of reading this chart is as follows: first move to the x-axis and then to the y-axis, for example:

  • „Mint a batch of 1 NFT, and then transfer tokenID 0”,
  • „Mint a batch 3 of NFT, and then transfer tokenID 1”
  • „Mint a batch 5 of NFT, and then transfer tokenID 4”

The above results indicate that moving token IDs in the middle of a larger mint batch (i.e. t1, t2) costs more than moving token IDs at the end of the batch (i.e. t0, t4).

How to minimize the cost of transferring an entire batch of NFT?

You can minimize costs if you are always minting the maximum allowed number of NFT when releasing an entire batch. In addition – when moving a batch, it is important to start a cycle with tokens of an ODD number in an ascending manner.
Examples of NFT projects using the ERC721A contract
Here is a list of projects, which are currently using the ERC721A contract:

  • @AzukiZen
  • @cerealclubnft
  • @TheLostGlitches
  • @standardweb3
  • @KittyCryptoGang
  • @XRabbitsClub
  • @WhaleTogether
  • @pixelpiracynft
  • @dastardlyducks
  • @MissMetaNFT
  • @StarcatchersNFT
  • @LivesOfAsuna
  • @richsadcatnft
  • @themonkeypoly
  • @womenofcrypto_
  • @TravelToucans
  • @HuhuNFT

Are ERC721A contracts still considered to be NFT transactions?

Of course. ERC721A contracts are NFT. Any contract that implements the ERC721 token standard, or the ERC1155 interfaces is seen as non-fungible or semi-fungible tokens. To put it simply, ERC721A is an extension and optimization of the previous version, the ERC721. The ERC721A contract is a very good idea which allows for saving money on gas in a given community, while at the same time protecting the Ethereum network from unnecessary workload.

Most viewed


Never miss a story

Stay updated about Nextrope news as it happens.

You are subscribed

Nextrope Partners with Hacken to Enhance Blockchain Security

Miłosz

21 Nov 2024
Nextrope Partners with Hacken to Enhance Blockchain Security

Nextrope announces a strategic partnership with Hacken, a renowned blockchain security auditor. It marks a significant step in delivering reliable decentralized solutions. After several successful collaborations resulting in flawless smart contract audits, the alliance solidifies the synergy between Nextrope's innovative blockchain development and Hacken's top-tier security auditing services. Together, we aim to set new benchmarks, ensuring that security is an integral part of blockchain technology.

Strengthening Blockchain Security

The partnership aims to fortify the security protocols within blockchain ecosystems. By integrating Hacken's comprehensive security audits with Nextrope's cutting-edge blockchain solutions, we are poised to offer unparalleled security features in our projects.

"Blockchain security should never be an afterthought"

"Our partnership with Hacken underscores our dedication to embedding security at the core of our blockchain solutions. Together, we're building a safer future for the industry."

said Mateusz Mach, CEO of Nextrope

About Nextrope

Nextrope is a forward-thinking blockchain development house specializing in creating innovative solutions for businesses worldwide. With a team of experienced developers and blockchain experts, Nextrope delivers high-quality, scalable, and secure blockchain applications tailored to meet the unique needs of each client.

About Hacken

Hacken is a leading blockchain security auditor known for its rigorous smart contract audits and security assessments. With a mission to make the industry safer, Hacken provides complex security services that help companies identify and mitigate vulnerabilities in their applications.

Looking Ahead

As a joint mission, both Nextrope and Hacken are committed to continuous innovation. We look forward to the exciting opportunities this partnership will bring and are eager to implement a more secure blockchain environment for all.

For more information, please contact:

Nextrope

Hacken

Join us on our journey to deliver top-notch blockchain tech and a safer future for the industry!

Nextrope as Sponsor at ETH Warsaw 2024: Highlights

Miłosz

04 Oct 2024
Nextrope as Sponsor at ETH Warsaw 2024: Highlights

ETH Warsaw has established itself as a significant event in the Web3 space, gathering developers, entrepreneurs, and investors in the heart of Poland’s capital each year. The 2024 edition was filled with builders and leaders united in advancing decentralized technologies.

Leading Event of Warsaw Blockchain Week

As a blend of conference and hackathon, ETH Warsaw aims to push the boundaries of innovation. For companies and individuals eager to shape the future of tech, the premier summit during Warsaw Blockchain Week offers a unique platform to connect and collaborate.

Major Milestones in Previous Editions

  • Over 1,000 participants attended the forum
  • 222 hackers competed, showcasing groundbreaking technical skills
  • $119,920 in bounties was awarded to boost promising solution development

Key Themes at ETH Warsaw 2024

This year’s discussions were centered around shaping the adoption of blockchain. To emphasize that future implementation requires a wide range of voices, perspectives, and understanding, ETH Warsaw 2024 encouraged participation from individuals of all backgrounds. As the industry stands on the cusp of a potential bull market, building resilient products brings substantial impact. Participants mutually raised an inhibitor posed by poor architecture or suspicious practices.

Infrastructure and Scalability

  • Layer 2 (L2) solutions
  • Zero-Knowledge Proofs (ZKPs)
  • Future of Account Abstraction in Decentralized Applications (DApps)
  • Advancements in Blockchain Interoperability
  • Integration of Artificial Intelligence (AI) and Machine Learning Models (MLMs) with on-chain data

Responsibility

With the premise of robust blockchain systems, we delved into topics such as privacy, advanced security protocols, and white-hacking as essential tools for maintaining trust. Discussions also included consensus mechanisms and their role in the entire infrastructure, beginning with transparent Decentralized Autonomous Organizations (DAOs).

Legal Policies

The track on financial freedom led to the transformative potential of decentralized finance (DeFi). We tackled the challenges and opportunities of blockchain products within a rapidly evolving regulatory landscape.

Mass Adoption

Conversations surrounding accessible platforms underscored the need to simplify onboarding for new users, ultimately crafting solutions that appeal to mainstream audiences. Contributors explored ways to improve user experience (UX), enhance community management, and support Web3 startups.

ETH Legal, co-organized with PKO BP and several leading law firms, studied the implementation of the MiCA guidelines starting next year and affecting the market. It aimed to dissect the complex policies that govern digital assets.

Currently, founders navigate a patchwork of regulations that vary by jurisdiction. There is a clear need for structured protocols that ensure consumer protection and market integrity while attracting more users. Legal experts broke down the implications of existing and anticipated changes on decentralized finance (DeFi), non-fungible tokens (NFTs), business logic, and other emerging technologies.

The importance of ETH Legal extended beyond theoretical discussions. It served as a vital forum for stakeholders to connect and share insights. Thanks to input from renowned experts in the field, attendees left with a deeper understanding of the challenges ahead.

Warsaw Blockchain Week: Nextrope’s Engagement

The Warsaw Blockchain Week 2024 ensured a wide range of activities, with a packed schedule of conferences, hackathons, and networking opportunities. Nextrope actively engaged in several side events throughout the week and recognized the immense potential to foster connections.

Side Events Attended by Nextrope

  • Elympics on TON
  • Aleph Zero Opening Party
  • Cookie3 x NOKS x TON Syndicate
  • Solana House

Nextrope’s Contribution to ETH Warsaw 2024

At ETH Warsaw 2024, Nextrope proudly positioned itself as a Pond Sponsor of the conference and hackathon, reflecting the event's mission. Following a strong track record of partnerships with large financial institutions and startups, we seized the opportunity to share our reflections with the community.

Together, we continue to innovate toward a more decentralized and inclusive future. By actively participating in open conversations about regulatory and technological advancements, Nextrope solidifies its role as an exemplar of dedication, forward-thinking, and technological resources.