GET /swap/status
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/socket/swap/statusCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeRead-only status of a quote/route by quote id: overall status plus origin and destination legs (chain, status, tx hash, timestamp, addresses and amounts).
Live check 2026-09-12: a never-submitted quote id returns HTTP 200 with status=PENDING on both backend.socket.tech and public-backend.socket.tech; an unknown id returns HTTP 404 'quote not found'.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
quoteId | query | str | required | Quote id returned by /swap/quote. Quote ids expire: fetch a fresh quote, then pass its id here. example: 0x271f6db40ee4e6273e0904649db26d907e7f3787fd06fce528130e7eb5aa8792 |
txHash | query | str | optional | Optional source-chain transaction hash to correlate the status with an on-chain transaction. |
Response
type: object
pagination: none
sample: {
"result": "object{quoteId, userOp, status, statusCode, routeDetails{name, logoURI}, refund, isDestPayloadExecuted, origin{chainId, status, txHash, timestamp, userAddress, input[]}, destination{chainId, status, txHash, timestamp, receiverAddress, output[]}}",
"statusCode": "int",
"success": "bool",
"message": "null"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/socket/swap/status?quoteId=0x271f6db40ee4e6273e0904649db26d907e7f3787fd06fce528130e7eb5aa8792"