<pre><code>listtransactions "" 9999999999
</code></pre>

<p>The number at the end is the number of transactions to list. Instead of just 9, if you set a number there larger than the number of transaction (I'm assuming you have less than 9999999999 transactions), you'll get all transactions. Here's the <a href="https://bitcoin.org/en/developer-reference#listtransactions" rel="nofollow noreferrer">API documentation</a>, for reference:</p>

<pre><code>listtransactions [label] [count] [skip]
</code></pre>

<p>if a <code>label</code> name is provided, this will return only incoming transactions paying to addresses with the specified label.</p>

<p><code>count</code> is the number of transactions to return (default 10)</p>

<p><code>skip</code> is the number of transactions to skip (default 0)</p>

<p>For example to list transactions 100 to 120</p>

<pre><code>bitcoin-cli listtransactions "*" 20 100
</code></pre>

CC BY-SA 4.0
2018-08-21T13:52:03.957Z
Does this list transactions for all accounts or just the default account?
Barney Chambers
CC BY-SA 4.0
2018-12-05T05:18:08.817Z
Is adding this number 9999999999 is good idea  ? because it may be possible in long run that this number will be small .
Pankaj Kumar
CC BY-SA 4.0
2014-05-22T20:44:40.980Z
2020-05-02T10:35:15.973Z
2020-05-02T10:35:15.973Z
Tim S.
<p>To get a complete list of ALL transactions you need to do these 5 steps:</p>

<ol>
<li>Download the full blockchain database (sync your node with network).</li>
<li>Download blockchain parser <a href="https://github.com/ragestack/blockchain-parser" rel="nofollow noreferrer">here</a> and open it in text editor.</li>
<li>Comment all strings that begins with <code>resList.append</code> except <code>resList.append('TX hash = ' + tmpHex)</code></li>
<li>Change <code>dirA</code> and <code>dirB</code> variables to yours directories.</li>
<li>Run the script.</li>
</ol>

<p>So you will get the text files in <code>dirB</code> with TX hashes according to your input <code>blk*****.dat</code> files from <code>dirB</code>. This is the most simple and trustworthy way to extract ALL data from blockchain database. In your case it is transactions hashes.</p>

CC BY-SA 4.0
2020-05-03T19:06:16.140Z
2020-05-03T19:06:16.140Z
Denis Leonov
<p>listtransactions - 9 provides the latest transactions and actually all =) </p>

<p>How to get all transactions?</p>

CC BY-SA 3.0
2014-05-25T22:03:06.180Z
I am confused by your first sentence, could you perhaps clarify your intent?
Murch
<transactions><json-rpc>
How to get a complete list of transactions?
user2850846
# How to get a complete list of transactions?

(Asked by: username_0 on 2014-05-22)

listtransactions - 9 provides the latest transactions and actually all =)

How to get all transactions?

**Tags:** transactions, json-rpc

> **Comments:**
> **username_1**: I am confused by your first sentence, could you perhaps clarify your intent?  

---

## 2 answers

### Answer by username_2 on 2014-05-22. Score: 1

listtransactions "" 9999999999

The number at the end is the number of transactions to list. Instead of just 9, if you set a number there larger than the number of transaction (I'm assuming you have less than 9999999999 transactions), you'll get all transactions. Here's the API documentation, for reference:
listtransactions [label] [count] [skip]

if a label name is provided, this will return only incoming transactions paying to addresses with the specified label.
count is the number of transactions to return (default 10)
skip is the number of transactions to skip (default 0)
For example to list transactions 100 to 120
bitcoin-cli listtransactions "*" 20 100

> **Comments:**
> **username_3**: Does this list transactions for all accounts or just the default account?  
> **username_4**: Is adding this number 9999999999 is good idea  ? because it may be possible in long run that this number will be small .  

---

### Answer by username_5 on 2020-05-03. Score: 0

To get a complete list of ALL transactions you need to do these 5 steps:

1. Download the full blockchain database (sync your node with network).
2. Download blockchain parser [here](https://github.com/ragestack/blockchain-parser) and open it in text editor.
3. Comment all strings that begins with `resList.append` except `resList.append('TX hash = ' + tmpHex)`
4. Change `dirA` and `dirB` variables to yours directories.
5. Run the script.

So you will get the text files in `dirB` with TX hashes according to your input `blk*****.dat` files from `dirB`. This is the most simple and trustworthy way to extract ALL data from blockchain database. In your case it is transactions hashes.


---

