Mach API Endpoints
Get User Orders
Retrieves all orders associated with a specific wallet address
GET
This endpoint allows you to fetch all orders that have been placed by a specific wallet address. The response includes detailed information about each order, including its status, transaction details, and timing information.
Query Parameters
The wallet address to retrieve orders for
Response
An array of order objects, each containing:Unique identifier for the order
The address that initiated the order
The address that fulfilled the order (null if not yet fulfilled)
Address of the token being sold
Address of the token being purchased
The source chain of the order
The destination chain of the order
Amount of source token in the smallest unit
Amount of destination token to be received
Timestamp when the order was created
Timestamp when the order was filled (null if not yet filled)
Timestamp when the order expires (null if no expiration)
Whether the order has been completed
Transaction hash of the order placement
Transaction hash of the order fulfillment (null if not yet fulfilled)
Estimated time in seconds until the order is completed
Type of the order (e.g., “default”, “cctp”)
Status Codes
| Status Code | Description |
|---|---|
| 200 | Success - Orders returned successfully |
| 422 | Validation Error - Invalid wallet address format |
| 500 | Internal Server Error - Something went wrong on the server |