The offer ID
The interaction object of the smart contract
Accept a global offer
The offer ID
The interaction object of the smart contract
Bid on an auction
The auction ID
The NFT Collection
The NFT nonce
The payment object
The interaction object of the smart contract
Bulk buy auctions
The auction IDs
The payment object
The interaction object of the smart contract
An object containing the necessary parameters to buy an auction.
The unique identifier of the auction.
Optionalcollection?: stringThe collection the auctioned token belongs to (optional).
Optionaldecimals?: numberOptionalisBid?: booleanOptionalisBigUintPayment?: booleanWhether the payment amount is a big integer (default is false).
Optionalmarket?: stringOptionalnonce?: numberThe nonce of the auctioned token (optional).
OptionalpaymentAmount?: stringThe payment amount for the auction (optional).
Optionalquantity?: numberThe quantity of tokens to buy (default is 1).
Optionaltoken?: stringThe payment token (default is 'EGLD').
OptionalwithCheck?: booleanWhether to check the auction information (default is true).
The resulting interaction with the specified chainID and gas limit.
This function allows a user to buy an auction by its auctionID. It takes an object with the following properties:
The function first checks if the auction exists and if its type is NFT or SftOnePerPayment. If not, an error is thrown.
Then, it calculates the payment amount and calls the buy method on the smart contract with the provided parameters.
Finally, the function returns the resulting interaction with the specified chainID and gas limit.
An array of objects containing the information needed to change a listing.
The resulting interaction with the specified chainID and gas limit.
This function takes an array of ChangeListing objects and constructs Struct instances using the provided
information. Each ChangeListing object should have the following properties:
The function then calls the changeListing method on the smart contract and returns the resulting interaction
with the specified chainID and gas limit.
Decline a custom offer
The offer ID
The interaction object of the smart contract
The unique identifier of the auction.
The resulting interaction with the specified chainID and gas limit.
This function allows ending an auction by its auctionID. It takes the following parameter:
The function calls the endAuction method on the smart contract with the provided auctionID.
Finally, it returns the resulting interaction with the specified chainID and gas limit.
Returns the auction struct for the given id.
The id of the auction for which to return the data.
An object containing the auction data for the given id. If the auction id is invalid, the return value will be null.
Returns the global offer data for the offer with the given id.
The id of the global offer for which to return the data.
An object containing the global offer data for the offer with the given id. If the global offer id is invalid, the return value will be null.
Gets the balance of a user in a token of a specific pool.
The address of the user.
The token address.
The nonce of the pool.
The balance of the user in the token of the pool.
Send a custom offer
The interaction object of the smart contract
Send a global offer
The interaction object of the smart contract
Withdraw auctions from the smart contract.
The IDs of the auctions to withdraw from
The interaction object of the smart contract
Withdraws a custom offer
The offer ID
The interaction object of the smart contract
Withdraw global offer from the smart contract.
The interaction object of the smart contract
Staticinit
Accept a custom offer