Private
apiPrivate
seaportPrivate
orderbookReturn the configuration for the orderbook module.
The configuration for the orderbook module.
Get an order by ID
The listingId to find.
The returned order result.
Get a trade by ID
The tradeId to find.
The returned order result.
List orders. This method is used to get a list of orders filtered by conditions specified in the params object.
Filtering, ordering and page parameters.
The paged orders.
List trades. This method is used to get a list of trades filtered by conditions specified in the params object
Filtering, ordering and page parameters.
The paged trades.
Get required transactions and messages for signing prior to creating a listing through the createListing method
Details about the listing to be created.
PrepareListingResponse includes
the unsigned approval transaction, the typed order message for signing and
the order components that can be submitted to createListing
with a signature.
Create an order
create an order with the given params.
The result of the order created in the Immutable services.
Get unsigned transactions that can be submitted to fulfil an open order. If the approval transaction exists it must be signed and submitted to the chain before the fulfilment transaction can be submitted or it will be reverted.
Approval and fulfilment transactions.
Cancelling orders is a gasless alternative to on-chain cancellation exposed with
cancelOrdersOnChain
. For the orderbook to authenticate the cancellation, the creator
of the orders must sign an EIP712 message containing the orderIds
The orderIds to attempt to cancel.
The signable action to cancel the orders.
Cancelling orders is a gasless alternative to on-chain cancellation exposed with
cancelOrdersOnChain
. Orders cancelled this way cannot be fulfilled and will be removed
from the orderbook. If there is pending fulfillment data outstanding for the order, its
cancellation will be pending until the fulfillment window has passed.
prepareOffchainOrderCancellations
can be used to get the signable action that is signed
to get the signature required for this call.
The orderIds to attempt to cancel.
The address of the account cancelling the orders.
The result of the off-chain cancellation request
Get an unsigned order cancellation transaction. Orders can only be cancelled by the account that created them. All of the orders must be from the same seaport contract. If trying to cancel orders from multiple seaport contracts, group the orderIds by seaport contract and call this method for each group.
The orderIds to cancel.
The address of the account cancelling the order.
The unsigned cancel order action
Generated using TypeDoc
zkEVM orderbook SDK
Param
Configuration for Immutable services.