ERC-20 Core

Supported Callback Functions

FunctionMode
beforeMintERC20REQUIRED
beforeTransferERC20OPTIONAL
beforeBurnERC20OPTIONAL
beforeApproveERC20OPTIONAL

Supported Interfaces

InterfaceID
ERC1650x01ffc9a7
ERC-75720xe8a3d485
ERC-1730x7f5828d0
ERC200x36372b07

Functions Supported

FunctionDescription
constructorInitializes the contract with parameters for name, symbol, metadata URI, owner, extensions, and extension data.
nameReturns the name of the token.
symbolReturns the symbol of the token.
contractURIReturns the contract metadata URI.
getSupportedCallbackFunctionsReturns the supported callback functions.
supportsInterfaceChecks if the contract implements an interface with the given interface ID.
setContractURISets the contract metadata URI. Callable only by the contract admin.
mintMints tokens to a specified address, calling the beforeMint hook.
burnBurns a specified amount of tokens, calling the beforeBurn hook if it exists.
transferTransfers tokens to a specified address, calling the beforeTransfer hook if it exists.
transferFromTransfers tokens from one address to another, calling the beforeTransfer hook if it exists.
approveApproves a spender to spend tokens on behalf of an owner, calling the beforeApprove hook if it exists.
permitSets allowance based on token owner's signed approval, calling the beforeApprove hook if it exists.