---
title: "Get transaction by ID"
method: GET
path: "/cryptos/{cryptoCode}/transactions/{txId}"
tags: ["Transactions"]
---

# Get transaction by ID

`GET /cryptos/{cryptoCode}/transactions/{txId}`

Retrieves details of a specific transaction by its transaction ID (`txId`) for the specified cryptocurrency.

## Path parameters

- `cryptoCode` string, required
- `txId` string, required

## Query parameters

- `includeTransaction` boolean

## Response `200`

Transaction details retrieved successfully.

- TransactionResponse
  - `blockHash` string — The hash of the block containing this transaction. Will be `null` if the transaction is unconfirmed.
  - `confirmations` integer, required — Number of confirmations the transaction has.
  - `height` integer — The block height. Will be `null` if the transaction is unconfirmed.
  - `transactionId` string, required — The transaction ID.
  - `transaction` string — Raw transaction in hex format. Included only if `includeTransaction` is `true`.
  - `outputs` TransactionOutput[], required — List of outputs related to the tracked source.
    - `scriptPubKey` string — The scriptPubKey of the output in hexadecimal format.
    - `index` integer — The index of the output in the transaction.
    - `value` integer — The amount of the output in satoshis.
    - `keyPath` string — The derivation path if the output is associated with the wallet.
  - `inputs` TransactionInput[], required — List of inputs related to the tracked source.
    - `inputIndex` integer, required — The index of this input within the transaction's list of inputs.
    - `transactionId` string, required — The transaction ID (hash) of the previous transaction whose output is being spent.
    - `index` integer, required — The index of the output in the previous transaction being referenced.
    - `scriptPubKey` string — The scriptPubKey of the output being spent, in hexadecimal format.
    - `value` integer — The amount of the output being spent, in satoshis.
    - `address` string — The Bitcoin address corresponding to the scriptPubKey of the output being spent.
  - `timestamp` integer — Transaction timestamp.
  - `balanceChange` integer — Net balance change for the wallet due to this transaction.
  - `replaceable` boolean — `true` if the transaction can be replaced (the transaction has RBF activated, is unconfirmed, and is not an intermediate transaction in a chain of unconfirmed transactions).
  - `replacing` string, nullable — If present, indicates the transaction ID that this transaction is replacing via RBF.
  - `replacedBy` string, nullable — If present, indicates the transaction ID that replaced this transaction via RBF.

## Other responses

- `404` — Transaction not found.

## Changes

- **2024-11-25** `6b9539137e6a` — 1 breaking, 9 info
  - for the `query` request parameter `includeTransaction`, default value was changed from `true` to `false`
  - api tag `Transactions` added
  - added the media type `application/json` for the response with the status `404`
  - the response property `confirmations` became required for the status `200`
  - …6 more
- **2024-11-18** `b5092f204599` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/btcpayserver/apis/nbxplorer-api/changes/cryptos/:cryptoCode/transactions/:txId/get.md)

---

[API](https://skmtc.dev/btcpayserver/apis/nbxplorer-api.md) · [All operations](https://skmtc.dev/btcpayserver/apis/nbxplorer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/btcpayserver/nbxplorer-api/revisions/7a96af40bbcc/schema)
