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

# Get transaction by ID

`GET /v1/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.

- TransactionResult
  - `blockHash` string — The hash of the block containing this transaction. Will be `null` if the transaction is unconfirmed.
  - `confirmations` integer — Number of confirmations the transaction has.
  - `height` integer — The block height. Will be `null` if the transaction is unconfirmed.
  - `transactionId` string — The transaction ID.
  - `transaction` string — Raw transaction in hex format. Included only if `includeTransaction` is `true`.
  - `metadata` TransactionMetadata, nullable — Additional metadata related to the transaction. This may be null if the transaction had been indexed when it wasn't in the mempool anymore.'
    - `vsize` integer, nullable — Virtual size of the transaction. Only available if the transaction has been indexed when it was in the mempool.
    - `fees` integer, nullable — Total fee of this transaction in satoshi. Only available if the transaction has been indexed when it was in the mempool.
    - `feeRate` number, nullable — The estimated fee rate in satoshis per vByte. Only available if the transaction has been indexed when it was in the mempool.
    - `chunk` object, nullable — Fee metadata for the transaction chunk, as reported by Bitcoin Core mempool entry data.
      - `fees` integer, nullable — Total fee of this chunk in satoshi.
      - `weight` integer, nullable — Total chunk weight in weight units.
      - `feeRate` number, nullable — Chunk fee rate in satoshis per vByte.
  - `timestamp` integer — The UNIX timestamp indicating when the transaction was first seen by NBXplorer.
  - `replacedBy` string, nullable — If present, indicates the transaction ID that replaced this transaction via RBF.

## Other responses

- `404` — Transaction not found.

---

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