Tracking Order Status
Last updated
Was this helpful?
Last updated
Was this helpful?
Once an order has been successfully created on-chain, its status can be tracked using several available methods. For an overview of all possible order states, refer to the order status documentation .
The method of the DLN allows retrieving the trade history and current status of all orders associated with a given wallet address. Check for more details.
Example:
The same endpoint powers the DLN , which can serve as a reference implementation.
For inspecting a specific order, the endpoint returns full order details as shown on the .
Example:
If multiple orders were created in a single transaction, this endpoint returns data only for the first order.
If multiple orders were created in a single transaction, the endpoint that returns a list of multiple order orderId
s created by one transaction is /v1.0/dln/tx/:hash/order-ids
.
will return an array with only one orderId
in it:
Example code:
To track order status directly by orderId
, use:
Example:
Response:
Fulfilled
SentUnlock
ClaimedUnlock
Any of the above statuses can be interpreted as complete from the perspective of the end-user.
Example code:
View the example order on .
For example, the transaction has been submitted to the BNB Chain. Calling the endpoint:
The orderId
is a deterministic identifier returned in the create-tx
or retrievable via the transaction hash.
View Swagger spec .
Orders progress through various , but the key states that indicate a successful fulfillment are:
If set during order creation, the is automatically transferred to the affiliateFeeRecipient
once the order reaches the ClaimedUnlock
status.