Following the orders
Tracking the Status of a Gasless Order
To monitor the status of a gasless order and provide updates to the user, use the following endpoint:
Endpoint:
/v1/gasless/status/{orderId}
Description
This endpoint allows you to query the status of an order created via the gasless trading flow. It provides real-time information about the order's current state, enabling you to keep the user informed.
How to Use
Call the Endpoint: Replace
{orderId}
with the unique identifier of the order you want to track:Response: The endpoint returns the current status of the order. Example response:
Possible Status Values
pending
The order has been created and is awaiting processing.
processing
The order is currently being executed by the system.
completed
The order has been successfully processed and finalized.
cancelled
The order was cancelled before it could be executed.
failed
The order could not be processed due to an error.
Key Notes
Real-Time Updates: Poll this endpoint to get real-time updates about the order status.
Order Information: Use the
orderId
provided when the order was created to query its status.User Feedback: Use the returned status and message to display appropriate feedback to the user.
This endpoint ensures transparency and allows you to keep users informed about the progress of their gasless trades. 🚀
Last updated
Was this helpful?