---
title: "Cancel a transaction"
method: POST
path: "/transactions/{txId}/cancel"
tags: ["Transactions"]
---

# Cancel a transaction

`POST /transactions/{txId}/cancel`

## Request

- Base URL: `https://api.fireblocks.io/v1`
- URL: `https://api.fireblocks.io/v1/transactions/{txId}/cancel`
- Auth: none declared
- TypeScript: <https://skmtc.dev/fireblocks/apis/fireblocks-api/docs/transactions/:txId/cancel/post.ts> (a function with typed inputs; its response is checked against the schema)

Cancels a transaction by Fireblocks Transaction ID.

Can be used only for transactions that did not get to the BROADCASTING state.
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor.

## Path parameters

- `txId` string, required

## Headers

- `X-End-User-Wallet-Id` string, uuid
- `Idempotency-Key` string

## Response `200`

An Transaction object

- CancelTransactionResponse
  - `success` boolean

## Other responses

- `default`: Error Response

---

[API](https://skmtc.dev/fireblocks/apis/fireblocks-api.md) - [All operations](https://skmtc.dev/fireblocks/apis/fireblocks-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fireblocks/apis/fireblocks-api/revisions/4eba9965659a?raw)
