listsinceblock

Input(s) 4

The listsinceblock RPC command retrieves all transactions in blocks since a specified block or from the genesis block if no block hash is provided. It returns information such as transaction details, including amount, confirmations, and category. Additionally, it can include transactions that were removed due to a reorganization in the blockchain.

How is this used?

The listsinceblock command is used to retrieve transaction history since a specified block, aiding in tracking wallet activity and confirming the status of transactions. It is particularly useful for monitoring incoming and outgoing transactions, especially in scenarios where reorganizations may affect the transaction history.

Request

method

listsinceblock

blockhash

Optional

target_confirmations

Optional

include_watchonly

Optional

include_removed

Optional

Inputs(4)

blockhash If set, the block hash to list transactions since, otherwise list all transactions
target_confirmations Return the nth block hash from the main chain. e.g. 1 would mean the best block hash. Note: this is not used as a filter, but only affects [lastblock] in the return value
include_watchonly include transactions to watch-only addresses
include_removed Show transactions that were removed due to a reorg in the “removed” array (not guaranteed to work on pruned nodes)

Result