<p><code>listsinceblock</code> will only list txs your wallet is interested in i.e. transactions involving as input or as output an address A such that:</p>

<ul>
<li>either A is an address whose private key is known to your wallet and consequently can sign transactions that spend UTXOs of A</li>
<li>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 <code>importaddress</code></li>
</ul>

<p><code>listtransactions</code> will also only return transactions your wallet is interested in but with different criteria. It returns <code>count</code> most recent txs of interest (as per above criteria) and you can also define to omit most recent <code>skip</code> txs and also filter by <code>label</code> (or <code>account</code> for older versions which is not deprecated).</p>

<p>All in all, following two should both return all txs your wallet is interested in:</p>

<pre><code>bitcoin-cli listsinceblock &lt;hash_of_genesis_block&gt; 1 true
</code></pre>

<pre><code>bitcoin-cli listtransactions "*" &lt;a_number_greater_than_your_wallet_total_tx_count&gt; 0 true
</code></pre>

<p>There is no direct way through CLI to return all txs in the blockchain afaik.</p>

CC BY-SA 4.0
2021-10-16T05:50:50.687Z
In the second case (i.e., A is imported as watch-only address in the wallet), will `listsinceblock` also show any coinbase transactions that used "A" as an output?
Shobit
CC BY-SA 4.0
2021-10-17T14:07:07.357Z
@Shobit I can't think of a reason why not. In that case "category" value would be "immature" or with > 100 confirmations "generate".
thalisk
CC BY-SA 4.0
2022-05-09T01:23:12.100Z
@ThalisK. is it true that “deposit” transactions are only the ones with “receive” as category? And how to consider receive transaction with 0 as amount? A deposit amount of 0 I think that is not a deposit
Giacomo Brunetta
CC BY-SA 4.0
2022-05-09T16:53:29.087Z
@AlfonsoSilvestri Also a coinbase transaction is a "deposit" (type "immature" and after 100 confirmations becomes "generate" and is spendable). A tx with amount == 0 can safely be ignored IMO.
thalisk
CC BY-SA 4.0
2020-03-10T18:01:55.710Z
2020-03-10T18:01:55.710Z
thalisk
<p>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) ?</p>

CC BY-SA 3.0
2018-03-16T12:08:28.570Z
Possible duplicate of [How can I list my mined coins using RPC? And spend them?](https://bitcoin.stackexchange.com/questions/36693/how-can-i-list-my-mined-coins-using-rpc-and-spend-them)
pebwindkraft
CC BY-SA 3.0
2018-03-16T12:12:52.077Z
... from all accounts within your own wallet, see here https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list: "listtransactions" Returns up to [count] most recent transactions skipping the first [from] transactions for account [account]. If [account] not provided it'll return recent transactions from all accounts.
pebwindkraft
CC BY-SA 3.0
2018-03-17T06:42:07.030Z
Can you please clarify why you posted the help file text for `listtransactions` when I asked about `listsinceblock` ?
Caius Jard
CC BY-SA 3.0
2018-03-17T07:18:09.790Z
Oops, yup, I see, I have mixed things up. The previous line on the same page refers to listsinceblock. Another link would be here: https://bitcoin.stackexchange.com/questions/25103/listsinceblock-parameter-target-confirmations, and also here: https://bitcoin.stackexchange.com/questions/32748/monitor-non-wallet-bitcoin-addresses-for-new-transactions/32755#32755. in general: if you set “txindex=1” in bitcoin.conf, then also foreign (non wallet addresses) can be seen.
pebwindkraft
<json-rpc>
Does listsinceblock list all transactions, or only transactions my wallet is interested in?
Caius Jard
# Does listsinceblock list all transactions, or only transactions my wallet is interested in?

(Asked by: username_0 on 2018-03-16)

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) ?

**Tags:** json-rpc

> **Comments:**
> **username_1**: Possible duplicate of [How can I list my mined coins using RPC? And spend them?](https://bitcoin.stackexchange.com/questions/36693/how-can-i-list-my-mined-coins-using-rpc-and-spend-them)  
> **username_1**: ... from all accounts within your own wallet, see here https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list: "listtransactions" Returns up to [count] most recent transactions skipping the first [from] transactions for account [account]. If [account] not provided it'll return recent transactions from all accounts.  
> **username_0**: Can you please clarify why you posted the help file text for `listtransactions` when I asked about `listsinceblock` ?  
> **username_1**: Oops, yup, I see, I have mixed things up. The previous line on the same page refers to listsinceblock. Another link would be here: https://bitcoin.stackexchange.com/questions/25103/listsinceblock-parameter-target-confirmations, and also here: https://bitcoin.stackexchange.com/questions/32748/monitor-non-wallet-bitcoin-addresses-for-new-transactions/32755#32755. in general: if you set “txindex=1” in bitcoin.conf, then also foreign (non wallet addresses) can be seen.  

---

## 1 answers

### Answer by username_2 on 2020-03-10. Score: 1

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 importaddress

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 label (or 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  1 true

bitcoin-cli listtransactions "*"  0 true

There is no direct way through CLI to return all txs in the blockchain afaik.

> **Comments:**
> **username_3**: In the second case (i.e., A is imported as watch-only address in the wallet), will `listsinceblock` also show any coinbase transactions that used "A" as an output?  
> **username_2**: @username_3 I can't think of a reason why not. In that case "category" value would be "immature" or with > 100 confirmations "generate".  
> **username_4**: @ThalisK. is it true that “deposit” transactions are only the ones with “receive” as category? And how to consider receive transaction with 0 as amount? A deposit amount of 0 I think that is not a deposit  
> **username_2**: @AlfonsoSilvestri Also a coinbase transaction is a "deposit" (type "immature" and after 100 confirmations becomes "generate" and is spendable). A tx with amount == 0 can safely be ignored IMO.  

---

