IERC721TL

Git Source

Author: transientlabs.xyz

Interface for ERC721TL

Interface id = 0xc74089ae

Functions

mint

Function to mint a single token

Requires owner or admin

function mint(address recipient, string calldata uri) external;

Parameters

NameTypeDescription
recipientaddressThe recipient of the token - assumed as able to receive 721 tokens
uristringThe token uri to mint

mint

Function to mint a single token with specific token royalty

Requires owner or admin

function mint(address recipient, string calldata uri, address royaltyAddress, uint256 royaltyPercent) external;

Parameters

NameTypeDescription
recipientaddressThe recipient of the token - assumed as able to receive 721 tokens
uristringThe token uri to mint
royaltyAddressaddressRoyalty payout address for this new token
royaltyPercentuint256Royalty percentage for this new token

batchMint

Function to batch mint tokens

Requires owner or admin

The baseUri folder should have the same number of json files in it as numTokens

The baseUri folder should have files named without any file extension

function batchMint(address recipient, uint128 numTokens, string calldata baseUri) external;

Parameters

NameTypeDescription
recipientaddressThe recipient of the token - assumed as able to receive 721 tokens
numTokensuint128Number of tokens in the batch mint
baseUristringThe base uri for the batch, expecting json to be in order, starting at file name 0, and SHOULD NOT have a trailing /

airdrop

Function to airdrop tokens to addresses

Requires owner or admin

Utilizes batch mint token uri values to save some gas but still ultimately mints individual tokens to people

The baseUri folder should have the same number of json files in it as addresses in addresses

The baseUri folder should have files named without any file extension

function airdrop(address[] calldata addresses, string calldata baseUri) external;

Parameters

NameTypeDescription
addressesaddress[]Dynamic array of addresses to mint to
baseUristringThe base uri for the batch, expecting json to be in order, starting at file name 0, and SHOULD NOT have a trailing /

externalMint

Function to allow an approved mint contract to mint

Requires the caller to be an approved mint contract

function externalMint(address recipient, string calldata uri) external;

Parameters

NameTypeDescription
recipientaddressThe recipient of the token - assumed as able to receive 721 tokens
uristringThe token uri to mint

burn

Function to burn a token

Caller must be approved or owner of the token

function burn(uint256 tokenId) external;

Parameters

NameTypeDescription
tokenIduint256The token to burn