---
title: "Rescan a transaction"
method: POST
path: "/v1/cryptos/{cryptoCode}/rescan"
tags: ["Blockchain"]
---

# Rescan a transaction

`POST /v1/cryptos/{cryptoCode}/rescan`

NBXplorer does not rescan the whole blockchain when tracking a new derivation scheme. This means that if the derivation scheme already received UTXOs in the past, NBXplorer will not be aware of it and might reuse addresses already generated in the past, and will not show past transactions.

By using this route, you can ask NBXplorer to rescan specific transactions found in the blockchain. This way, the transactions and the UTXOs present before tracking the derivation scheme will appear correctly.

## Path parameters

- `cryptoCode` string, required

## Request body

- object
  - `transactions` union[] — The transactions to rescan
    - union
      - object
        - `transactionId` string — The transaction hash to rescan.
        - `transaction` string — The transaction to rescan.
        - `blockId` string — The block hash where the transaction is located.
      - object
        - `transactionId` string — The transaction hash to rescan.
      - object
        - `blockId` string — The block hash where the transaction is located.
        - `transaction` string — The transaction to rescan.

## Response `200`

Rescan initiated successfully.

## Changes

- **2024-11-25** `6c3d07b4ed39` — 1 breaking, 1 warning, 1 info
  - removed the media type `application/json` for the response with the status `200`
  - removed the request property `startHeight`
  - added the new optional request property `transactions`
- **2024-11-25** `72a2dfa26976` — 1 info
  - endpoint added
- **2024-11-18** `b5092f204599` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/btcpayserver/apis/nbxplorer-api/changes/v1/cryptos/:cryptoCode/rescan/post.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/208cac39e31a/schema)
