curl --request GET \
--url https://api.velora.xyz/v2/delta/orders/hash/{hash}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"input": {
"chainId": 123,
"token": "<string>",
"amount": "<string>",
"expectedAmount": "<string>",
"executedAmount": "<string>"
},
"output": {
"chainId": 123,
"token": "<string>",
"amount": "<string>",
"expectedAmount": "<string>",
"executedAmount": "<string>"
},
"owner": "<string>",
"beneficiary": "<string>",
"orderHash": "<string>",
"partner": "<string>",
"order": {},
"transactions": [
{
"originTx": "<string>",
"destinationTx": "<string>",
"filledPercent": 123,
"spentAmount": "<string>",
"receivedAmount": "<string>"
}
],
"refunds": [
{
"tx": "<string>",
"chainId": 123,
"token": "<string>",
"amount": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z"
}Get Delta order by hash
Fetch a Delta V2 order by its EIP-712 hash, useful before the order id is assigned.
curl --request GET \
--url https://api.velora.xyz/v2/delta/orders/hash/{hash}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"input": {
"chainId": 123,
"token": "<string>",
"amount": "<string>",
"expectedAmount": "<string>",
"executedAmount": "<string>"
},
"output": {
"chainId": 123,
"token": "<string>",
"amount": "<string>",
"expectedAmount": "<string>",
"executedAmount": "<string>"
},
"owner": "<string>",
"beneficiary": "<string>",
"orderHash": "<string>",
"partner": "<string>",
"order": {},
"transactions": [
{
"originTx": "<string>",
"destinationTx": "<string>",
"filledPercent": 123,
"spentAmount": "<string>",
"receivedAmount": "<string>"
}
],
"refunds": [
{
"tx": "<string>",
"chainId": 123,
"token": "<string>",
"amount": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z"
}Path Parameters
Order hash returned by POST /v2/delta/orders/build.
Response
Order details.
V2 order shape returned by every order endpoint (reads and posts). input and output carry the expected + executed amounts so you don't need to compute fill-percent yourself. onChainOrderType selects the family the order struct belongs to. Crosschain refunds appear in refunds after Velora verifies the refund transaction receipt.
PENDING, AWAITING_SIGNATURE, ACTIVE, SUSPENDED, CANCELLING, BRIDGING, COMPLETED, FAILED, EXPIRED, REFUNDING, CANCELLED, REFUNDED SELL, BUY MARKET, LIMIT Order, FillableOrder, ProductiveOrder, ExternalOrder, TWAPOrder, TWAPBuyOrder Source-side token movement. SELL: { chainId, token, amount }. BUY: { chainId, token, expectedAmount, executedAmount }.
Show child attributes
Show child attributes
Destination-side token movement. SELL: { chainId, token, expectedAmount, executedAmount }. BUY: { chainId, token, amount }.
Show child attributes
Show child attributes
The signed on-chain Order struct.
Show child attributes
Show child attributes
Verified bridge refund transactions for crosschain orders. Empty until Velora can match an on-chain refund receipt; some bridge providers may not emit source-chain token refund metadata.
Show child attributes
Show child attributes
Was this page helpful?