ERC-1155 Core

Supported Callback Functions

FunctionMode
beforeMintERC1155REQUIRED
beforeMintWithSignatureERC1155REQUIRED
beforeTransferERC1155OPTIONAL
beforeBatchTransferERC1155OPTIONAL
beforeBurnERC1155OPTIONAL
beforeApproveForAllOPTIONAL
onTokenURIREQUIRED
updateMetadataERC1155REQUIRED
updateTokenIdERC1155OPTIONAL

Supported Interfaces

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

Functions Supported

FunctionDescription
_initializeInitializes the contract with parameters for name, symbol, metadata URI, owner, modules, and their data.
contractURIReturns the contract metadata URI.
totalSupplyReturns the total supply of a specified tokenId.
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 to a specified address, calling the beforeMint hook.
mintWithSignatureMints tokens with a signature, calling the beforeMintWithSignature hook.
burnBurns a specified token, 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 or approve for all of the caller's NFTs, calling the beforeApproveForAll hook if it exists.