IERC721Receiver
Title: IERC721Receiver
Interface for contracts that want to receive ERC-721 tokens safely.
Functions
onERC721Received
Handle the receipt of an NFT.
The ERC-721 smart contract calls this function on the recipient after a safeTransfer.
function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data)
external
returns (bytes4);Parameters
| Name | Type | Description |
|---|---|---|
| operator | address | |
| from | address | |
| tokenId | uint256 | |
| data | bytes |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | bytes4 | bytes4(keccak256("onERC721Received(address,address,uint256,bytes)")) to confirm receipt. |