You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.0 KiB
1.0 KiB
Overview
ERC721A is an improved implementation of the ERC721 Non-Fungible Token Standard that supports minting multiple tokens for close to the cost of one.
Announcements
📢 Version 4.x introduces several breaking changes.
Please refer to the migration guide for more details.
We highly recommend reading the migration guide, especially the part on supportsInterface
if you are using with OpenZeppelin extensions (e.g. ERC2981).
Installation
npm install --save-dev erc721a
Usage
Once installed, you can use the contracts in the library by importing them:
pragma solidity ^0.8.4;
import "erc721a/contracts/ERC721A.sol";
contract Azuki is ERC721A {
constructor() ERC721A("Azuki", "AZUKI") {}
function mint(uint256 quantity) external payable {
// `_mint`'s second argument now takes in a `quantity`, not a `tokenId`.
_mint(msg.sender, quantity);
}
}