Skip to main content

listsinceblock

Overview

The 'listsinceblock' method allows you to retrieve all transactions that have occurred since a specified block, identified by its blockhash. This method returns details about each transaction, including the involved addresses, transaction category, amount, fee, confirmations, and other relevant data.

Request

wget --no-check-certificate --quiet \
--method POST \
--timeout=0 \
--header 'Content-Type: application/json' \
--header 'accept: application/json' \
--header 'X-CoinAPI-Key: 4303fb63-adec-42dc-b571-74bc2f2a5167' \
--body-data '{"jsonrpc":"2.0","id":1,"method":"listsinceblock","params": [ ]}' \
'https://bitcoin-mainnet.node.coinapi.io'

Request Parameters

  • blockhash (string): The hash of the block from which to list transactions. If not provided, it will list transactions from the genesis block.
  • target_confirmations (numeric): The number of confirmations a transaction needs to have to be listed. Default is 6.
  • include_watchonly (boolean): Whether to include transactions to watch-only addresses. Default is true.
  • include_removed (boolean): Whether to include removed transactions. Default is true.

Response

{
"result": null,
"error": {
"code": -18,
"message": "No wallet is loaded. Load a wallet using loadwallet or create a new one with createwallet. (Note: A default wallet is no longer automatically created)"
},
"id": 1
}