Transactions

Get transaction by ID

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

get/v1/cryptos/{cryptoCode}/transactions/{txId}

Path parameters

cryptoCodestring required

The cryptocurrency code to track (e.g., 'BTC' for Bitcoin, 'LTC' for Litecoin).

txIdstring required

The transaction ID to retrieve.

Query parameters

includeTransactionboolean

Optional. If set to true, the response will include the raw transaction data in hexadecimal format (transaction field). Default is false.

Response

Transaction details retrieved successfully.

blockHashstring

The hash of the block containing this transaction. Will be null if the transaction is unconfirmed.

confirmationsinteger

Number of confirmations the transaction has.

heightinteger

The block height. Will be null if the transaction is unconfirmed.

transactionIdstring

The transaction ID.

transactionstring

Raw transaction in hex format. Included only if includeTransaction is true.

timestampinteger

The UNIX timestamp indicating when the transaction was first seen by NBXplorer.

replacedBystring nullable

If present, indicates the transaction ID that replaced this transaction via RBF.

Example response

{
  "blockHash": "7639350b31f3ce07ff976ebae772fef1602b30a10ccb8ca69047fe0fe8b9083c",
  "confirmations": 1,
  "height": 876593,
  "transactionId": "14a679cd743f3d2aa51b998747c58dfa9b31c8c669006fc6c6efe4b4f5f76e5b",
  "transaction": "02000000000101b596e23a22ea753251a5da4b7d415604dc05ab7c45ff675e077ed60a0d0a8d277401000000fdffffff0126010000000000001600140e48fd70dbb5af35119bfe7d626944c48c98ed9d0340e6c77a58ede14930d83002f05b8a13320a4140ab40a45b7f677f05c7653479d62b3d121823503563096156429b8fe5d818381812b4854ed3f59ec999b6fca8a94420afd36e561af10735e88f95d9655e5b3f7bc79de0a4781ef99d1e030c0c567422ac0063036f7264510a746578742f706c61696e000d3837363537382e6269746d61706821c0afd36e561af10735e88f95d9655e5b3f7bc79de0a4781ef99d1e030c0c56742200000000",
  "metadata": {
    "vsize": 141,
    "fees": 2820,
    "feeRate": 20,
    "chunk": {
      "fees": 2820,
      "weight": 564,
      "feeRate": 20
    }
  },
  "timestamp": 1540376171,
  "replacedBy": "8fdac258458f9216b035b30a62ca0400697d76a83f50cd7dc18eb8352e936cf2"
}

Changes

Changed in 7 of the 40 revisions of this API.10510

    • added the optional property metadata/chunk to the response with the 200 status

      response-optional-property-added

  • 8f8eb2939c5c51See the full diff
    • removed the optional property balanceChange from the response with the 200 status

      response-optional-property-removed

    • removed the optional property inputs from the response with the 200 status

      response-optional-property-removed

    • removed the optional property outputs from the response with the 200 status

      response-optional-property-removed

    • removed the optional property replaceable from the response with the 200 status

      response-optional-property-removed

    • removed the optional property replacing from the response with the 200 status

      response-optional-property-removed

    • added the optional property metadata to the response with the 200 status

      response-optional-property-added

    • added the optional property inputs/items/feature to the response with the 200 status

      response-optional-property-added

    • added the optional property outputs/items/feature to the response with the 200 status

      response-optional-property-added

  • 272dc200f07172See the full diff
    • the response property confirmations became optional for the status 200

      response-property-became-optional

    • the response property inputs became optional for the status 200

      response-property-became-optional

    • the response property inputs/items/index became optional for the status 200

      response-property-became-optional

    • the response property inputs/items/inputIndex became optional for the status 200

      response-property-became-optional

    • the response property inputs/items/transactionId became optional for the status 200

      response-property-became-optional

    • the response property outputs became optional for the status 200

      response-property-became-optional

    • the response property transactionId became optional for the status 200

      response-property-became-optional

    • added the optional property inputs/items/keyPath to the response with the 200 status

      response-optional-property-added

    • added the optional property outputs/items/address to the response with the 200 status

      response-optional-property-added

  • cfaf4efd4ea823See the full diff
    • the code response's property type/format changed from integer/ to string/ for status 404

      response-property-type-changed

    • removed the required property error from the response with the 404 status

      response-required-property-removed

    • added the optional property httpCode to the response with the 404 status

      response-optional-property-added

    • added the optional property message to the response with the 404 status

      response-optional-property-added

    • added the optional property reason to the response with the 404 status

      response-optional-property-added

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 14 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog