For the complete documentation index, see llms.txt. This page is also available as Markdown.

GET /bridge/withdrawals/{id}

Get a bridge withdrawal

Get a bridge withdrawal.

operationId: fetchBridgeWithdrawal

Declared server: https://api.testnet.nexus.xyz/v1. See Networks.

Not reachable through CCXT. Nexus-specific Halliday-fronted payout. CCXT's withdraw method models a venue paying a user-supplied address from its own custody, not a per-withdrawal one-time-wallet quote settled by a third party.

Authentication: agentAuth, hmacAuth.

Get a bridge withdrawal

get
/bridge/withdrawals/{id}

Fetch a single withdrawal by id, scoped to the authenticated account.

Authorizations
X-API-KeystringRequired

HMAC API key authentication. Send three headers:

  • X-API-Key: your key ID (e.g. nx_a1b2c3...)
  • X-Timestamp: current time in unix milliseconds
  • X-Signature: hex(hmac_sha256(secret, timestamp + "\n" + METHOD + "\n" + path + "\n" + query + "\n" + sha256_hex(body)))

Timestamp must be within 30 seconds of server time.

The key is network-scoped; the signature is not. The canonical string above has no network component, so the same signed request is byte-identical on every host. What stops a testnet key from authenticating against mainnet is that the key does not exist in that host's key store — sign only for the host that minted the key, and never replay a signed payload against another network. Presented to the wrong host, a key is refused with the same opaque 401 as an unknown key and must not be retried there. See “API keys are bound to one network” in the API description.

Path parameters
idstringRequired

The withdrawal id (wdl_).

Responses
200

The withdrawal.

application/json

A Halliday withdrawal (ENG-4625). Every payout pays a Halliday one-time wallet (OTW), quoted per withdrawal; Halliday then settles to the user asynchronously in the asset and destination the user chose. There is no user-supplied payout address and no route that skips Halliday.

idstringRequired

Opaque withdrawal id (wdl_<hex>), minted from a CSPRNG. Account-scoped: a guessed id from another account 404s.

account_idstringRequired

0x-prefixed Nexus account being debited.

amountstringRequired

Withdrawal amount in USDX base units (integer, 6 decimals), as the request supplied it.

statusstring · enumRequired

Lifecycle: pending -> quoted -> broadcast -> confirmed | failed. quoted once Halliday has returned an OTW, broadcast once the on-chain release is sent, confirmed once it is mined (Halliday then settles to the user). failed is terminal. On failed the Exchange debit is reversed only when the release is provably unpaid; an unknown-outcome release (broadcast, receipt unread) stays debited pending reconciliation, so failed does not by itself mean the balance was restored -- read failure_reason.

Possible values:
destinationstring · nullableOptional

0x-prefixed Halliday OTW this withdrawal pays; null until quoted. Never a user-supplied address.

tx_hashstring · nullableOptional

0x-prefixed source-chain tx hash of the release; null until confirmed. An unknown-outcome failed release records its hash in failure_reason instead, since this field is written only on confirmation.

confirmationsinteger · nullableOptional

Confirmations observed for the release tx; null until confirmed.

failure_reasonstring · nullableOptional

Operator-facing reason; present only when status is failed.

created_atinteger · int64Required

Unix epoch timestamp in milliseconds.

updated_atinteger · int64Required

Unix epoch timestamp in milliseconds.

get/bridge/withdrawals/{id}
GET /v1/bridge/withdrawals/{id} HTTP/1.1
Host: api.testnet.nexus.xyz
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "id": "text",
  "account_id": "text",
  "amount": "text",
  "status": "pending",
  "destination": "text",
  "tx_hash": "text",
  "confirmations": 1,
  "failure_reason": "text",
  "created_at": 1,
  "updated_at": 1
}

Test it cannot sign this request. X-Signature is an HMAC computed per call: see Authentication, or use an SDK.


API version 0.9.122

Last updated