Tracking a Status of the Order
There is a separate endpoint which returns the list of
orderIds of the orders that were created by the given transaction:
gives an array with only one
The reason this endpoint returns an array rather than a single
orderIdis because a top level transaction may perform several calls to DLN, thus leading to multiple order creation.
orderIdhas been revealed, it can be used to track the order's status. Use the
/v1.0/dln/order/:id/statusendpoint supplying the given
orderId. Calling the endpoint:
gives a status for the given order:
The order may have different statuses across its lifecycle, but the most important are
ClaimedUnlock— all indicating that the order has been successfully fulfilled, and a recipient has received a precise amount of the output token.
The affiliate fee (if set) that has been accrued during order creation is transferred to the
ClaimedUnlockstatus is reached.