Ticket Market
Ticket Market
readSaleInfo
Read information of sale
** Request **
Params | Type | Description |
_owner | address | owner |
_token | address | nft contract address |
_token_id | uint256 | token id |
** Response **
Params | Type | Description |
payToken | address | base token |
price | uint256 | sale price |
term | uint256 | rent term (s) |
amount | uint256 | rent amount at the time of rental |
rental | bool | true: rent ,false: sell |
readFeeReceiver
Read the address for collecting service fee
** Response **
Params | Type | Description |
feeReceiver | address | fee receiver |
readFeeRate
Read the fee rate
** Response **
Params | Type | Description |
feeRate | uint256 | fee rate,decimals=4 |
readAllowToken
Read whether to pay tokens
** Request **
Params | Type | Description |
_token | address | tolen address |
** Response ** |
Params | Type | Description |
isPayToken | boolean | is pay token |
Make
Rent or sell the NFT
Params | Type | Description |
_token | address | pending order adress of nft |
_tokenId | uint256 | nft tokenId |
_payToken | address | pay token |
_price | uint256 | pay price |
_amount | uint256 | pending oder amount of nft,if it is erc721, show 1 |
_term | uint256 | rent term (s),sell is 0 |
_rental | bool | true means rent,false means sell |
Take
Rent or sell the NFT
Params | Type | Description |
_seller | address | address of renter |
_token | address | nft address |
_tokenId | uint256 | nft tokenId |
Cancel
Cancel the rent or sale of the ticket
Params | Type | Description |
_seller | address | renter address |
_token | address | nft address |
_tokenId | uint256 | nft tokenId |
Last updated