Skip to content
API v2 · Deprecated

List your orders

Deprecated
GET
/v2/orders
curl --request GET \
--url 'https://api.hyperstream.dev/v2/orders?state=delivered&limit=20' \
--header 'X-API-Key: <X-API-Key>'

Your orders, newest first by build time, always scoped to your key. traces.chainObservations is empty here; read the single order for its trail.

The cursor is a keyset: orders built after your first page do not appear on later pages. Poll the first page for new orders, and keep the filters unchanged while paging.

depositor
string
/^0x[0-9a-fA-F]{40}$/

Only orders from this EVM depositor, including BTC, Solana and Hub-funded orders. Spoke-funded TRON/Stellar orders have none; filter them by from and to.

from
Any of:
string
/^0x[0-9a-fA-F]{64}$/

Only orders with this source token. Either TRON form matches; Stellar uses its bytes32 asset id.

to
Any of:
string
/^0x[0-9a-fA-F]{64}$/

Only orders with this destination token. Either TRON form matches; Stellar uses its bytes32 asset id.

state
string
Allowed values: pending_deposit deposited published partially_filled terminal_chain withdrawn_on_hub delivered delivery_failed

Only orders in this state.

Example

delivered
cursor
string
/^\d+_0x[0-9a-fA-F]{64}$/

nextCursor from the previous page. Keep the other filters unchanged while paging.

limit
string
/^\d+$/

Page size, clamped to 1–200. Default 50.

Example

20

A page of orders.

Media typeapplication/json

A page of your orders.

object
orders
required

Newest first by build time.

Array<object>

One order and its lifecycle. Nested objects are null until their event is observed.

object
orderId
required

keccak256(abi.encode(depositor, nonce)), lowercase. Keys every later call: persist it.

string
/^0x[0-9a-fA-F]{64}$/
integrator
required

Your integrator name.

string
srcToken
required

Address in the chain’s native display form: EVM 0x hex, TRON base58.

string
dstToken
required

Address in the chain’s native display form: EVM 0x hex, TRON base58.

string
srcChainId
required
Any of:

Spoke chain id.

integer
dstChainId
required
Any of:

Spoke chain id.

integer
srcAmountSpoke
required

The deposit, in source base units.

string
/^\d+$/
depositor
required
Any of:
string
/^0x[0-9a-fA-F]{40}$/
depositAddress
required
Any of:

Address in the chain’s native display form: EVM 0x hex, TRON base58.

string
sourceDeposit

Solana source observation, independent of order state. Refreshed on single-order reads, including after delivery; omitted from bulk lists. Unavailable does not prove that no payment arrived.

object
status
required
string
Allowed values: unknown pending observed credited quarantined expired recovered unavailable
reason
string
depositTx

Native Solana deposit signature.

string
recoveryTx

Native Solana recovery signature.

string
payoutAddr
required

Address in the chain’s native display form: EVM 0x hex, TRON base58.

string
refundAddr
required

Address in the chain’s native display form: EVM 0x hex, TRON base58.

string
fullFee
required
Any of:
string
/^\d+$/
intentOutcomeRate
required
Any of:
string
/^\d+$/
slippageBps
required

The slippage signed into the order, in bps. It pays out at most intentOutcomeRate ÷ (1 − slippageBps / 10⁴) per unit filled.

integer
minOutcome
required
Any of:
string
/^\d+$/
state
required

Closed set. Poll until delivered or delivery_failed; withdrawn_on_hub means hub settlement with delivery not yet fully recorded. Use a local timeout and resume by orderId if the result remains unconfirmed.

string
Allowed values: pending_deposit deposited published partially_filled terminal_chain withdrawn_on_hub delivered delivery_failed
funding
string
Allowed values: spoke hub
deposit
required
Any of:
object
tx
required

Transaction hash (EVM) or the chain’s transaction id (non-EVM).

string
at
required

When it was observed, unix seconds.

integer
chainId

Chain containing the deposit transaction; Hub chain for Hub funding.

integer
deliver
required
Any of:
object
payout
required
Any of:
object
tx
required
string
amount
required
Any of:
string
/^\d+$/
refund
required
Any of:
object
tx
required
string
amount
required
Any of:
string
/^\d+$/
withoutTx
required

Completion without a tx: sub_unit_amount means the amount was smaller than the destination chain’s smallest unit, so nothing was transferred; tx_unknown means delivery completed but the tx is unknown.

object
payout
required
Any of:
string
Allowed values: sub_unit_amount tx_unknown
refund
required
Any of:
string
Allowed values: sub_unit_amount tx_unknown
at
required

When the last leg was recorded.

integer
deliveryFailed
required
Any of:
object
msg
required
string
Allowed values: payout failed refund failed payout and refund both failed
payout
required

The transport’s report for the payout leg.

string | null
refund
required

The transport’s report for the refund leg.

string | null
traces
required

Diagnostics. Track state, deposit and deliver instead.

object
rootIntentId
required
Any of:
string
/^0x[0-9a-fA-F]{64}$/
publish
required
Any of:
object
tx
required

Transaction hash (EVM) or the chain’s transaction id (non-EVM).

string
at
required

When it was observed, unix seconds.

integer
withdraw
required
Any of:
object
tx
required
string
settledOutcome
required
Any of:
string
/^\d+$/
refundSource
required
Any of:
string
/^\d+$/
accruedFee
required
Any of:
string
/^\d+$/
at
required
integer
chainObservations
required

Ordered trail of the intent and its fills. Always empty in the order list.

Array<object>
object
seq
required
integer
intentId
required
string
/^0x[0-9a-fA-F]{64}$/
intentState
required
string
Allowed values: Open Solved Cancelled
observedTx
required
string
at
required
integer
nextCursor
required

Pass as cursor for the next page. Non-null on every non-empty page: stop when orders comes back empty.

string | null

Example

{
"orders": [
{
"orderId": "0x35dc8d390877c71baacadb4001eea0055804cfc306f599fbfc97c1d69d64d30a",
"integrator": "acme",
"srcToken": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"dstToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"srcChainId": 42161,
"dstChainId": 8453,
"srcAmountSpoke": "100000000",
"depositor": "0x5b38da6a701c568545dcfcb03fcb875f56beddc4",
"depositAddress": null,
"payoutAddr": "0x5b38da6a701c568545dcfcb03fcb875f56beddc4",
"refundAddr": "0x5b38da6a701c568545dcfcb03fcb875f56beddc4",
"fullFee": "349850",
"intentOutcomeRate": "999700000000000000",
"slippageBps": 0,
"minOutcome": "99620254",
"state": "delivered",
"deposit": {
"tx": "0xa37fc5f866fdd03a6443129b95f5a328eba3a36b0c4d68c467849e846775a04d",
"at": 1786999720
},
"deliver": {
"payout": {
"tx": "0x938eedc52713a24442d412eca2d8aae68c3df30fca154226113c438f82df5aa7",
"amount": "99620254"
},
"refund": null,
"withoutTx": {
"payout": null,
"refund": null
},
"at": 1786999810
},
"deliveryFailed": null,
"traces": {
"rootIntentId": "0x01cb37f4c5f512f757df0452b51e3fe8daefda8dfdd7e6d298d841ac54f7d18b",
"publish": {
"tx": "0xad257bdb68adfa6f6d2bf551f29edeeadc2c58bbbc1806ee42a741c2e36f1d07",
"at": 1786999745
},
"withdraw": {
"tx": "0x17c2da9cc8b27b31e95406d399f5468b2caddbd272afd102d148a9de5bb5dde5",
"settledOutcome": "99620254",
"refundSource": "0",
"accruedFee": "329910",
"at": 1786999790
},
"chainObservations": []
}
}
],
"nextCursor": "1786999700_0x35dc8d390877c71baacadb4001eea0055804cfc306f599fbfc97c1d69d64d30a"
}

Invalid query.

Media typeapplication/json

The request failed schema validation. Carries message, not error.

object
message
required
string
Allowed value: Validation failed
name
required
string
Allowed value: ValidationException
details
required
Array<object>
object
field
required
string
message
required
string
code
required
string

Example

{
"message": "Validation failed",
"name": "ValidationException"
}

The X-API-Key header is missing.

Media typeapplication/json

An error raised by the route itself.

object
error
required
string
detail
object
minSrcAmount

Smallest deposit that would quote, in source base units.

string
/^\d+$/
maxSrcAmount

Largest deposit that would quote, in source base units.

string
/^\d+$/
missing

The deployment setting this direction needs.

string

Example

{
"error": "X-API-Key required"
}

The key is unknown or past its rotation window. A 403 is always about your account: do not retry.

Media typeapplication/json

An error raised by the route itself.

object
error
required
string
detail
object
minSrcAmount

Smallest deposit that would quote, in source base units.

string
/^\d+$/
maxSrcAmount

Largest deposit that would quote, in source base units.

string
/^\d+$/
missing

The deployment setting this direction needs.

string

Example

{
"error": "Unknown or inactive integrator"
}

Rate limited per IP. No Retry-After; back off and retry.

Media typeapplication/json

Rate limited. No Retry-After; back off and retry.

object
errorCode
required
string
Allowed value: RATE_LIMITED
message
required
string

Example

{
"errorCode": "RATE_LIMITED",
"message": "Too many requests, please retry later"
}

Unhandled failure. Retry once, then escalate with the x-request-id response header.

Media typeapplication/json

Maintenance, a malformed JSON body, or an unhandled failure. Carries message, not error.

object
message
required
string
name
required

MaintenanceException (503), BadRequestException (malformed JSON) or InternalErrorException (500).

string

Example

{
"message": "Internal Error",
"name": "InternalErrorException"
}