Skip to content
Docs

Swap and bridge

Check route status

GET /v1/routes/status reports whether a swap or bridge transfer is pending, done, or failed.

Endpoint

GET/v1/routes/status

Query txHash (required) plus optional fromChainId, toChainId, bridge.

Request
curl -sS "https://blockchain.gray3.io/v1/routes/status?txHash=0xYourTxHash&fromChainId=ethereum&toChainId=base" \
  -H "X-Gray-Project-Id: proj_your_project_id" \
  -H "Authorization: Bearer gray_sk_your_secret"

Response

HTTP 200 — success envelope wraps the payload in data.

json
{
  "data": {
    "status": "pending",
    "substatus": "waiting_for_destination",
    "sendingTxHash": "0x…",
    "receivingTxHash": null,
    "source": "aggregator"
  }
}

status is one of not_found, pending, done, failed, or unknown.

Errors

Errors use HTTP { "error": { "code", "message", "retryable" } }. Branch on code, not the message text.

Every authenticated route may also return unauthorized (401), revoked_secret (401), forbidden (403), credits_exhausted (402), plan_feature_denied (403), rate_limit_exceeded (429, retryable), and invalid_argument (413) for request bodies over 256 KiB.

CodeHTTPWhen
unsupported_capability400Testnet chain id or feature disabled on testnets (prices, NFTs, DeFi, swap)
invalid_argument400Missing or malformed chainId, address, or body fields
plan_chain_denied403chainId is not on the project plan
chain_disabled403Chain turned off in Console › Networks
unsupported_capability400Capability not offered for this chain (e.g. testnet prices)
invalid_argument400Missing fromChainId, toChainId, fromAmount, or fromAddress
swap_unavailable503The swap quote or route status service is temporarily unavailable (retryable)
json
{
  "error": {
    "code": "unsupported_capability",
    "message": "Human-readable detail (may be sanitized).",
    "retryable": false
  }
}