Introduction
The deBridge order management system allows you to track and control your cross-chain orders throughout their lifecycle. You can query order status, retrieve order IDs from transaction hashes, and cancel orders when needed.Core Operations
The order management system provides three key operations:Query Status
Check the current status of any order using its order ID.
Get Order ID
Retrieve the order ID from a transaction hash.
Cancel Order
Cancel pending orders before they are fulfilled.
API Endpoints
All order management operations use the DLN Stats API:- Base URL:
https://stats-api.dln.trade/api - Get Order Status:
GET /Orders/{orderId} - Get Order ID:
GET /Transaction/{txHash}/orderIds - Get Filtered Orders:
POST /Orders/filteredList
Order States
Orders can be in various states throughout their lifecycle:| State | Description |
|---|---|
Created | Order has been created on the source chain |
Fulfilled | Order has been completed successfully |
SentUnlock | Unlock transaction has been sent |
ClaimedUnlock | Unlock has been claimed |
OrderCancelled | Order was cancelled by the user |
The states
Fulfilled, SentUnlock, and ClaimedUnlock are all considered fulfilled from the end-user’s perspective.Utility Functions
The example repository provides utility functions for common order management tasks:Next Steps
Query Order Status
Learn how to check the status of your orders using the Query Status guide.
Retrieve Order IDs
Convert transaction hashes to order IDs with the Get Order ID guide.
Cancel Orders
Understand how to cancel pending orders in the Cancel Order guide.