Overview of parameters in a Order

The Order struct contains 8 distinct parameters and 3 signature parameters:

orderHash — The hash of the order specifications.

orderType — The type of order to be executed (ETH_TO_ERC721, ETH_TO_ERC1155, ERC20_TO_ERC721, ERC20_TO_ERC1155, ERC721_TO_ERC20, ERC1155_TO_ERC20). lender — The address of the lender of the order. borrower — The address of the borrower of the order. collection — The specific collection address. tokenId — The id of the token for the order. expiryDateTime - The epoch time of when the order expires. collateral - The amount to be deposited as collateral for the NFT.

currency - The type of ERC20 token to be used (zero address if native ETH is to be used). status - The current status of the order.

Breakdown of parameters

orderHash

The hash of the maker order signature plus the specifications of the order itself.

orderType

The type of order to be executed (ETH_TO_ERC721, ETH_TO_ERC1155, ERC20_TO_ERC721, ERC20_TO_ERC1155, ERC721_TO_ERC20, ERC1155_TO_ERC20)

lender

The address of the lender of the order. For instance, it can be displayed as 0xab5801a7d398351b8be11c439e05c5b3259aec9b.

borrower

The address of the borrower of the order. For instance, it can be displayed as 0xab5801a7d398351b8be11c439e05c5b3259aec9b.

collection

The address of the collection to trade. For instance, it can be displayed as 0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d.

tokenId

The tokenId, part of the collection, that the signer is looking to borrow/lend.

expiryDateTime

The epoch time of when the order expires. It is calculated by adding the duration of the makerOrder with the block.timestamp of when the borrow was executed