IERC1155Receiver
Title: IERC1155Receiver
Interface for contracts that want to receive ERC-1155 tokens.
Functions
onERC1155Received
Handle the receipt of a single ERC-1155 token type.
function onERC1155Received(address operator, address from, uint256 id, uint256 value, bytes calldata data)
external
returns (bytes4);Parameters
| Name | Type | Description |
|---|---|---|
| operator | address | |
| from | address | |
| id | uint256 | |
| value | uint256 | |
| data | bytes |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | bytes4 |
onERC1155BatchReceived
Handle the receipt of multiple ERC-1155 token types.
function onERC1155BatchReceived(
address operator,
address from,
uint256[] calldata ids,
uint256[] calldata values,
bytes calldata data
) external returns (bytes4);Parameters
| Name | Type | Description |
|---|---|---|
| operator | address | |
| from | address | |
| ids | uint256[] | |
| values | uint256[] | |
| data | bytes |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | bytes4 |