'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 price of the offer for the total amount to be bought (must include the buyer fee)
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 for the total amount to be bought (must include the buyer fee)
the identifier of the payment token (default = ITHEUM
token identifier based on the EnvironmentsEnum))
Creates a acceptOffer
transaction with NFT/SFT tokens
the address of the sender
the id of the offer to be accepted
the amount of tokens to be bought
the identifier of the token for the payment
the nonce of the token for the payment
the amount of the token for the payment
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)
the maximum quantity a user can buy (default could be 0 - (no enforced max value) or admin defined value)
Creates a cancelOffer
transaction
the address of the sender
the id of the offer to be cancelled
the quantity 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
Creates a new instance of the DataNftMarket which can be used to interact with the marketplace smart contract