API reference v1.0
Introduction
periphery
tokenomics
IERC721Receiver

IERC721Receiver

IERC721Receiver

ERC721 token receiver interface

Developer note: Interface for any contract that wants to support safeTransfers from ERC721 asset contracts.

Functions

onERC721Received

onERC721Received(address,address,uint256,bytes) external

NameTypeDescription
operatoraddress
fromaddress
tokenIduint256
databytes

Returns:

NameTypeDescription
[0]bytes4

IERC721Receiver

ERC721 token receiver interface

Developer note: Interface for any contract that wants to support safeTransfers from ERC721 asset contracts.

Functions

onERC721Received

onERC721Received(address,address,uint256,bytes) external

NameTypeDescription
operatoraddress
fromaddress
tokenIduint256
databytes

Returns:

NameTypeDescription
[0]bytes4