ERC-1155 Core

Supported Callback Functions

FunctionMode
beforeMintERC1155REQUIRED
beforeTransferERC1155OPTIONAL
beforeBatchTransferERC1155OPTIONAL
beforeBurnERC1155OPTIONAL
beforeApproveForAllOPTIONAL
onTokenURIREQUIRED
beforeBatchMintERC1155REQUIRED

Supported Interfaces

InterfaceID
ERC1650x01ffc9a7
ERC11550xd9b67a26
ERC1155MetadataURI0x0e89341c
ERC-75720xe8a3d485
ERC-1730x7f5828d0

Functions Supported

FunctionDescription
constructorInitializes the contract with parameters for name, symbol, metadata URI, owner, modules, and module data.
nameReturns the name of the NFT Collection.
symbolReturns the symbol of the NFT Collection.
contractURIReturns the contract metadata URI.
totalSupplyReturns the total supply of a tokenId of the NFT collection.
uriReturns the token metadata of an NFT.
supportsInterfaceChecks if the contract implements an interface with the given interface ID.
getSupportedCallbackFunctionsReturns the supported callback functions.
setContractURISets the contract metadata URI. Callable only by the contract admin.
mintMints tokens with a given tokenId to a specified address, calling the beforeMint hook.
batchMintBatch mints tokens to a specified address, calling the beforeBatchMint hook.
burnBurns a specified amount of tokens, calling the beforeBurn hook if it exists.
safeTransferFromTransfers ownership of an NFT, calling the beforeTransfer hook if it exists.
safeBatchTransferFromBatch transfers ownership of NFTs, calling the beforeBatchTransfer hook if it exists.
setApprovalForAllApproves or revokes approval from an operator to transfer all NFTs. Calls the beforeApproveForAll hook if it exists.