Build Calldata
The NiftyConnect exchange contract provides a method to build calldata which is necessary in makeOrder
and takeOrder
.
The above is js example to call the util method.
Last updated
The NiftyConnect exchange contract provides a method to build calldata which is necessary in makeOrder
and takeOrder
.
The above is js example to call the util method.
Last updated
name | type | description |
---|---|---|
selector
uint256
Refer to NFT Transfer Selector
from
address
NFTOwner address. When making buy orders, leave it to zero.
to
address
NFT recipient address. When making sell orders, leave it to zero.
nftAddress
address
NFT contract address
tokenId
uint256
NFT asset token id
amount
uint256
For ERC721, the amount must be 1. For ERC1155, its value should be no more than the nftOwner balance
merkleRoot
bytes32
Only used in trait-based order, leave it to zero for other scenarios
merkleProof
bytes32[]
Only used in trait-based order, leave it to empty for other scenarios