ICheckout
interface, implemented by Checkout
, exposes a few helpful methods and events.
Building Transactions to Interact with Orders
The following async requests will return aStep[]
these are used to generate transactions that, when submitted, perform the desired action.
OnTransactionStepsReturn
and OnTransactionStepsError
events to handle the responses elsewhere.
GenerateBuyTransaction
is used to buy a specified amount of a given collectible in the providedOrder[]
/listings
GenerateSellTransaction
is used to sell a specified amount for a given collectible in the providedOrder[]
/offers
GenerateListingTransaction
is used to create a new listing for a given collectible, amount, and price.
GenerateOfferTransaction
is used to create a new offer for a given collectible, amount, and price.
GenerateCancelTransaction
is used to cancel an existing order created by the user.