Wondering if I call listsinceblock "", will I get all transactions that ever occurred on the blockchain regardless of whether my wallet was party to it, or will it only be a list of transactions relevant to my wallet (things I've sent/received/have a private key for at least one side of) ?
listsinceblock will only list txs your wallet is interested in i.e. transactions involving as input or as output an address A such that:
- either A is an address whose private key is known to your wallet and consequently can sign transactions that spend UTXOs of A
- or A is an address your wallet is following as watch-only i.e. does not know A's private key but A was added to the wallet using
listtransactions will also only return transactions your wallet is interested in but with different criteria. It returns
count most recent txs of interest (as per above criteria) and you can also define to omit most recent
skip txs and also filter by
account for older versions which is not deprecated).
All in all, following two should both return all txs your wallet is interested in:
bitcoin-cli listsinceblock <hash_of_genesis_block> 1 true
bitcoin-cli listtransactions "*" <a_number_greater_than_your_wallet_total_tx_count> 0 true
There is no direct way through CLI to return all txs in the blockchain afaik.