IERC6093
IERC20Errors
Standard ERC-20 Errors Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
Errors
ERC20InsufficientBalance
Indicates an error related to the current balance of a sender. Used in transfers.
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);Parameters
sender
address
Address whose tokens are being transferred.
balance
uint256
Current balance for the interacting account.
needed
uint256
Minimum amount required to perform a transfer.
ERC20InvalidSender
Indicates a failure with the token sender. Used in transfers.
error ERC20InvalidSender(address sender);Parameters
sender
address
Address whose tokens are being transferred.
ERC20InvalidReceiver
Indicates a failure with the token receiver. Used in transfers.
Parameters
receiver
address
Address to which tokens are being transferred.
ERC20InsufficientAllowance
Indicates a failure with the spenderβs allowance. Used in transfers.
Parameters
spender
address
Address that may be allowed to operate on tokens without being their owner.
allowance
uint256
Amount of tokens a spender is allowed to operate with.
needed
uint256
Minimum amount required to perform a transfer.
ERC20InvalidApprover
Indicates a failure with the approver of a token to be approved. Used in approvals.
Parameters
approver
address
Address initiating an approval operation.
ERC20InvalidSpender
Indicates a failure with the spender to be approved. Used in approvals.
Parameters
spender
address
Address that may be allowed to operate on tokens without being their owner.
IERC721Errors
Standard ERC-721 Errors Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
Errors
ERC721InvalidOwner
Indicates that an address can't be an owner. For example, address(0) is a forbidden owner in ERC-20. Used in balance queries.
Parameters
owner
address
Address of the current owner of a token.
ERC721NonexistentToken
Indicates a tokenId whose owner is the zero address.
Parameters
tokenId
uint256
Identifier number of a token.
ERC721IncorrectOwner
Indicates an error related to the ownership over a particular token. Used in transfers.
Parameters
sender
address
Address whose tokens are being transferred.
tokenId
uint256
Identifier number of a token.
owner
address
Address of the current owner of a token.
ERC721InvalidSender
Indicates a failure with the token sender. Used in transfers.
Parameters
sender
address
Address whose tokens are being transferred.
ERC721InvalidReceiver
Indicates a failure with the token receiver. Used in transfers.
Parameters
receiver
address
Address to which tokens are being transferred.
ERC721InsufficientApproval
Indicates a failure with the operatorβs approval. Used in transfers.
Parameters
operator
address
Address that may be allowed to operate on tokens without being their owner.
tokenId
uint256
Identifier number of a token.
ERC721InvalidApprover
Indicates a failure with the approver of a token to be approved. Used in approvals.
Parameters
approver
address
Address initiating an approval operation.
ERC721InvalidOperator
Indicates a failure with the operator to be approved. Used in approvals.
Parameters
operator
address
Address that may be allowed to operate on tokens without being their owner.
IERC1155Errors
Standard ERC-1155 Errors Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.
Errors
ERC1155InsufficientBalance
Indicates an error related to the current balance of a sender. Used in transfers.
Parameters
sender
address
Address whose tokens are being transferred.
balance
uint256
Current balance for the interacting account.
needed
uint256
Minimum amount required to perform a transfer.
tokenId
uint256
Identifier number of a token.
ERC1155InvalidSender
Indicates a failure with the token sender. Used in transfers.
Parameters
sender
address
Address whose tokens are being transferred.
ERC1155InvalidReceiver
Indicates a failure with the token receiver. Used in transfers.
Parameters
receiver
address
Address to which tokens are being transferred.
ERC1155MissingApprovalForAll
Indicates a failure with the operatorβs approval. Used in transfers.
Parameters
operator
address
Address that may be allowed to operate on tokens without being their owner.
owner
address
Address of the current owner of a token.
ERC1155InvalidApprover
Indicates a failure with the approver of a token to be approved. Used in approvals.
Parameters
approver
address
Address initiating an approval operation.
ERC1155InvalidOperator
Indicates a failure with the operator to be approved. Used in approvals.
Parameters
operator
address
Address that may be allowed to operate on tokens without being their owner.
ERC1155InvalidArrayLength
Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. Used in batch transfers.
Parameters
idsLength
uint256
Length of the array of token identifiers
valuesLength
uint256
Length of the array of token amounts
Last updated