GET /orders lists the orders submitted through POST /order/openfor: every lane except the open
flow. Each entry joins what was asked (the quote) with what the hub has seen on chain.
Paging
walkOrders follows the guide’s cursor rule: the last entry’s submittedAt is the next since.
It removes duplicates by orderId and stops on a short page, on a page that added nothing, or
after maxPages (default 20). pageSize defaults to the hub’s maximum, 500.
What the list holds depends on the transport:
- On your server, with your key (
hubTransport), it is the history of the transport’s one subject (defaultunless you set another): every order made under it, whichever of your users placed it. Never hand it to a browser unfiltered. With a user’ssubject(client.walkOrders({ subject }), or a client made withcreateInteropClient({ transport, subject })), it is only that user’s orders (Authentication — your users). - Through your proxy (
proxyTransport), it is already the signed-in user’s own orders: the proxy scopes it to the user, by the user’s subject or from your organization’s listing (Partner backend). - With a project id (
projectTransport), the history is not open: keep the ids of the orders the page submits (thesubmittedevent), and follow them withtrackOrder.
A readable row
summarizeOrder(entry) resolves assets through the catalog and returns an OrderSummary:
decimals is known for catalog assets and for legs the hub joined; it is never guessed. A token
the catalog does not list (a launchpad token by address) may come back without it.
expired means the fill deadline passed, which comes before refunds open. An expired order is
not yet refundable: see Refunds.Following one order
On a server that names your users, pass the order’s
subject to trackOrder, waitForOrder and
getOrderStatus too: the aggregator’s status view reads it. The chain facts and the open flow’s
lifecycle view do not.
Open-flow orders
Open-flow orders (POST /order) are not listed in GET /orders. Keep their ids when you submit
them, and follow them on the hub’s lifecycle view with waitForHubOrder (or executeQuote, which
does it for you).