---
title: "getStatus"
method: GET
path: "/gasless/status/{tradeHash}"
tags: ["Gasless"]
---

# getStatus

`GET /gasless/status/{tradeHash}`

Get the status of a gasless swap

## Path parameters

- `tradeHash` string, required

## Query parameters

- `chainId` integer, required

## Headers

- `0x-api-key` string, required
- `0x-version` string, required

## Response `200`

Successful response

- union
  - object
    - `approvalTransactions` object[] — Details of the gasless approval transaction
      - `hash` string, required — The onchain transaction hash
      - `timestamp` integer, required — The timestamp when the transaction was submitted onchain
    - `status` 'pending' | 'submitted' | 'succeeded' | 'confirmed', required — `pending` means that the order has been queued on 0x. `submitted` means that it has been submitted onchain, `succeeded` means it has been included in a block, `confirmed` means the transaction has at least 3 confirmations onchain
    - `transactions` object[], required — Details of the gasless swap transaction. If the trade is `pending`, no transaction will be returned. If `submitted`, multiple transactions may be returned, but only one will be mined. If `succeeded` or `confirmed`, the mined transaction will be returned
      - `hash` string, required — The onchain transaction hash
      - `timestamp` integer, required — The timestamp when the transaction was submitted onchain
    - `zid` string, required — The unique ZeroEx identifier of the request
  - object
    - `approvalTransactions` object[] — Details of the gasless approval transaction
      - `hash` string, required — The onchain transaction hash
      - `timestamp` integer, required — The timestamp when the transaction was submitted onchain
    - `reason` 'transaction_simulation_failed' | 'order_expired' | 'last_look_declined' | 'transaction_reverted' | 'market_maker_sigature_error' | 'insufficient_allowance' | 'insufficient_balance' | 'internal_error', required — This provides more context about why the transaction failed
    - `status` 'failed', required — `failed` means that the order failed to be submitted onchain
    - `transactions` object[], required — Details of the gasless swap transaction. If the trade status is `failed`, there may be 0 (if it failed before submission) to multiple transactions (if the transaction reverted)
      - `hash` string, required — The onchain transaction hash
      - `timestamp` integer, required — The timestamp when the transaction was submitted onchain
    - `zid` string, required — The unique ZeroEx identifier of the request

## Other responses

- `400` — 400 error response
- `404` — 404 error response
- `500` — 500 error response

---

[API](https://skmtc.net/0xproject/apis/0x-api.md) · [All operations](https://skmtc.net/0xproject/apis/0x-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/0xproject/0x-api/versions/27a84feeb09b/schema)
