Skip to main content

ERC721Portal

The ERC721Portal allows anyone to perform transfers of ERC-721 tokens to a dApp while informing the off-chain machine.

depositERC721Token()

function depositERC721Token( IERC721 token, address appContract, uint256 tokenId, bytes baseLayerData, bytes execLayerData) external

Transfer an ERC-721 token to a dApp and add an input to the dApp's input box to signal such operation.

The caller must change the approved address for the ERC-721 token to the portal address beforehand, by calling the approve function in the token contract.

Parameters

NameTypeDescription
tokenIERC721The ERC-721 token contract address
appContractaddressThe address of the dApp
tokenIduint256The identifier of the token being transferred
baseLayerDatabytesAdditional data to be interpreted by the base layer
execLayerDatabytesAdditional data to be interpreted by the execution layer

On this page

Useful resources to learn more

We use cookies to ensure that we give you the best experience on our website. By using the website, you agree to the use of cookies.