Swaps

Get a swap's status

Returns whether a swap on Uniswap V4, 1inch Aqua, Orca or Raydium is pending, settled, failed or unknown, from the transaction the trader sent. It works the same on every chain, Solana included, and names the venue that settled it.

GET
/api/swap/status/{chainId}/{txHash}

Authorization

ApiKeyAuth
X-API-Key<token>

Your API key. Authorizing a swap or opening a market takes a key issued to your integration, and the shared key the docs fill in reads and quotes only.

In: header

Path Parameters

chainId*integer

The chain's numeric id, for example 8453 for Base or 1151111081099710 for Solana. GET /api/vaults/chains lists them.

txHash*string

The transaction the trader sent: its 32 byte hex hash, or its signature on Solana.

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/swap/status/1/string"

{  "chainId": 8453,  "transactionHash": "0x1bafb8940361a1f555e2105aa42d9b09cca8d5fe1b376758ed675914a42b8fb2",  "venue": "v4",  "status": "SETTLED",  "settlement": {    "transactionHash": "0x1bafb8940361a1f555e2105aa42d9b09cca8d5fe1b376758ed675914a42b8fb2",    "timestamp": 1791928849,    "token0": "0x4200000000000000000000000000000000000006",    "delta0": "-395205934230333",    "token1": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",    "delta1": "999998"  }}

{  "error": "string",  "code": "string",  "message": "string",  "details": {},  "requestId": "string"}
{  "error": "string",  "code": "string",  "message": "string",  "details": {},  "requestId": "string"}