Overview of parameters in a Maker Order

The MakerOrder structure contains 11 distinct parameters and 1 signature parameter:

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) signer — The address of the signer of the maker order. collection — The specific collection address. tokenId — The id of the token for the order.

amount — The amount of tokens transferred. It is only used for ERC-1155 tokens (e.g., “2 items for a given tokenId”). For ERC-721 tokens, it is set at 1 duration - The length of time in seconds that the NFT can be borrowed for. collateral - The amount to be deposited as collateral in order to borrow the NFT fee - The amount to be paid to the Lender upon borrowing the NFT.

currency - The type of ERC20 token to be used (zero address if native ETH is to be used) nonce — The order nonce of the sender. endTime — The end time for the order (in epoch format).

tokenFlaggingId - The id received back from the Reservoir Token Flagging Oracle signature — Cryptographic parameters generated by the web3 provider. These parameters are used to verify cryptographically that the signer address did sign the order.

Breakdown of parameters

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).

signer

The address signing the message. 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.

amount

The amount of tokens to transfer for the tokenId. While this is currently only relevant for ERC-1155 tokens (e.g., “2 items for a given tokenId”), for ERC-721 tokens, it is set at 1

duration

The length of time in seconds that the NFT can be borrowed for. It is stored as a uint256 and is used to calculate the order's expiryDateTime upon the borrow.

collateral