API reference
Read a bridge order
GET
/v2/bridges/{id}Read a bridge order with an owner session or destination proof.
Authentication: Required: the order’s owner session in X-Session-ID, or the destination proof ?verify=<destination-address> (read-only).
#Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string (pattern ^[A-Za-z0-9:_-]{1,128}$) |
Yes | Public order identifier. Not a credential: every read still requires the owner session or the destination proof. |
#Response
200 returns an object with:
- product = "bridge"
orderId· string · requiredproduct·"bridge"· requiredstatus·"awaiting_deposit"·"awaiting_xmr1"·"awaiting_trx1"·"awaiting_zec1"·"processing"·"completed"·"failed"·"expired"·"refunded"·"needs_review"· requiredasset·"xmr"·"trx"·"zec"· required — Registered native-bridge asset key, never a display symbol.direction·"deposit"· requiredchainId· integer or null · required — Non-negative integer chain identifier.toAddress· string or null · requiredcreatedAt· string or null · requiredupdatedAt· string or null · requiredfromChainId· integer or null — Non-negative integer chain identifier.depositChainId· integer or null — Non-negative integer chain identifier.fromToken· stringdepositToken· stringfromTokenSymbol· stringdepositTokenSymbol· stringfromTokenDecimals· integer (0–36)depositTokenDecimals· integer (0–36)fromAmount· stringdepositAmount· stringtoChainId· integer or null — Non-negative integer chain identifier.toToken· stringtoTokenSymbol· stringtoTokenDecimals· integer (0–36)expectedOutput· stringdepositTxHash· string or nullreceivingTxHash· string or nullsessionId· string or nullrefundAddress· string or nullrefundRequestedAt· string or nullexpiresAt· stringamountUsd· numberbonusStage·"none"·"coinflip"coinflipRequested· booleanfundingProvider·"privy"or nullintegratorFeeUsd· number or nullcustomerState· one of the variants below · required — Authoritative customer display/action state. Clients must not infer lifecycle from status or resource presence.- Nested fields: see
openapi.json.
- Nested fields: see
confirmations· numberrequiredConfirmations· numberdepositObserved· booleanerrorMessage· string or null · requiredactualOutput· string — What the customer received, in atomic units ofdeliveredTokenwhen present, otherwise oftoToken. Only on completed orders.deliveredToken· object — Present only when the order completed in a different asset thantoToken;actualOutputis then denominated in this token.- Nested fields: see
openapi.json.
- Nested fields: see
coinflipLost· boolean · requiredhasReview· boolean · requiredrefundRecovery· object or null- Nested fields: see
openapi.json.
- Nested fields: see
rewards· object- Nested fields: see
openapi.json.
- Nested fields: see
destination· string · requiredamount· string or numbertxIn· string or nulltxOut· string or nulltxid· string or nullbridgeSettlement· object or null- Nested fields: see
openapi.json.
- Nested fields: see
receivedXmr· number or nulldelivered· boolean or nullcompletedAt· string or nulldepositAddress· string · requireddepositAddressForms· array of object- Nested fields: see
openapi.json.
- Nested fields: see
- product = "bridge"
orderId· string · requiredproduct·"bridge"· requiredstatus·"awaiting_deposit"·"awaiting_xmr1"·"awaiting_trx1"·"awaiting_zec1"·"processing"·"completed"·"failed"·"expired"·"refunded"·"needs_review"· requiredasset·"xmr"·"trx"·"zec"· required — Registered native-bridge asset key, never a display symbol.direction·"withdraw"· requiredchainId· integer or null · required — Non-negative integer chain identifier.toAddress· string or null · requiredcreatedAt· string or null · requiredupdatedAt· string or null · requiredfromChainId· integer or null — Non-negative integer chain identifier.depositChainId· integer or null — Non-negative integer chain identifier.fromToken· stringdepositToken· stringfromTokenSymbol· stringdepositTokenSymbol· stringfromTokenDecimals· integer (0–36)depositTokenDecimals· integer (0–36)fromAmount· stringdepositAmount· stringtoChainId· integer or null — Non-negative integer chain identifier.toToken· stringtoTokenSymbol· stringtoTokenDecimals· integer (0–36)expectedOutput· stringdepositTxHash· string or nullreceivingTxHash· string or nullsessionId· string or nullrefundAddress· string or nullrefundRequestedAt· string or nullexpiresAt· stringamountUsd· numberbonusStage·"none"·"coinflip"coinflipRequested· booleanfundingProvider·"privy"or nullintegratorFeeUsd· number or nullcustomerState· one of the variants below · required — Authoritative customer display/action state. Clients must not infer lifecycle from status or resource presence.- Nested fields: see
openapi.json.
- Nested fields: see
confirmations· numberrequiredConfirmations· numberdepositObserved· booleanerrorMessage· string or null · requiredactualOutput· string — What the customer received, in atomic units ofdeliveredTokenwhen present, otherwise oftoToken. Only on completed orders.deliveredToken· object — Present only when the order completed in a different asset thantoToken;actualOutputis then denominated in this token.- Nested fields: see
openapi.json.
- Nested fields: see
coinflipLost· boolean · requiredhasReview· boolean · requiredrefundRecovery· object or null- Nested fields: see
openapi.json.
- Nested fields: see
rewards· object- Nested fields: see
openapi.json.
- Nested fields: see
destination· string · requiredamount· string or numbertxIn· string or nulltxOut· string or nulltxid· string or nullbridgeSettlement· object or null- Nested fields: see
openapi.json.
- Nested fields: see
receivedXmr· number or nulldelivered· boolean or nullcompletedAt· string or nullxmr1DepositAddress· string or null · required
Errors use the standard error envelope: branch on code, never on the message.
#Example
curl
curl 'https://api-beta.wagyu.xyz/v2/bridges/<orderId>' \
-H 'x-session-id: <sessionId>'JavaScript
const res = await fetch('https://api-beta.wagyu.xyz/v2/bridges/<orderId>', {
headers: {"x-session-id":"<sessionId>"},
});
const data = await res.json();Python
import requests
res = requests.get('https://api-beta.wagyu.xyz/v2/bridges/<orderId>', headers={"x-session-id":"<sessionId>"}, timeout=30)
data = res.json()No response is captured for this route: it needs a real order. The response fields above come from the live contract.