'devnet' | 'mainnet' | 'testnet'
Timeout for the network provider (DEFAULT = 10000ms)
Readonly
chainIDReadonly
contractReadonly
envReadonly
networkCreates a acceptOffer
transaction with EGLD
the address of the sender
the id of the offer to be accepted
the amount of tokens to be bought
the price of the offer (must include the buyer fee)
Creates a acceptOffer
transaction with ESDT tokens
the address of the sender
the id of the offer to be accepted
the amount of tokens to be bought
the price of the offer (must include the buyer fee)
the identifier of the payment token (default = ITHEUM
token identifier based on the EnvironmentsEnum))
Creates a acceptOffer
without payment token (Free)
the address of the sender
the id of the offer to be accepted
the amount of tokens to be bought
Creates a addOffer
transaction
the address of the sender
the identifier of the DATA-NFT
the nonce of the DATA-NFT
the amount of the DATA-NFT
the identifier of the payment token sender
wants to receive
the nonce of the payment token
the amount of the payment token
the minimum amount of which the sender
is willing to receive (useful in case where an offer was added and the smart contract fee was changed afterwards)
Creates a cancelOffer
transaction
the address of the sender
the id of the offer to be cancelled
default true
, if false
the offer will be cancelled, but the funds will be kept in the contract until withdrawal
Creates a changeOfferPrice
transaction
the address of the sender
the id of the offer to be changed
the new price of the offer
the new minimum amount of which the sender
is willing to receive (useful in case where an offer was added and the smart contract fee was changed afterwards)
Retrieves an array of Offer
objects listed on the marketplace for a given address within a specified range.
The starting index of the desired range of offers.
The ending index of the desired range of offers.
The address to query.
Retrieves the smart contract requirements for the marketplace
Creates a withdrawCancelledOffer
transaction
the address of the sender
the id of the offer from which the funds should be withdrawn
offerId
must be firstly cancelled. cancelOffer
Generated using TypeDoc
Creates a new instance of the DataNftMarket which can be used to interact with the marketplace smart contract