<p><code>bitcoind</code> supports the argument <code>-stopatheight</code>, which takes the number of blocks to download before halting.</p>

CC BY-SA 4.0
2021-02-09T00:52:23.123Z
Surprising that this flag does not show up while running the `bitcoind -?` command, could you point me to some documentation I can look at?
m0bi5
CC BY-SA 4.0
2021-02-09T01:01:00.217Z
It’s not a normal option. `bitcoind -help -help-debug`
Claris
CC BY-SA 4.0
2021-02-07T22:30:06.557Z
2021-02-07T23:45:08.287Z
2021-02-07T23:45:08.287Z
Claris
<p>I am planning on doing some transaction analysis on the blockchain, however, I only want to do it on a small part of the blockchain first and then run it on the full blockchain later on. I have downloaded the bitcoind client, is there any way to only sync up to a certain block?</p>

<blockchain><bitcoind><synchronization>
Is there a way to only sync up to a certain block?
m0bi5
# Is there a way to only sync up to a certain block?

(Asked by: username_0 on 2021-02-07)

I am planning on doing some transaction analysis on the blockchain, however, I only want to do it on a small part of the blockchain first and then run it on the full blockchain later on. I have downloaded the bitcoind client, is there any way to only sync up to a certain block?

**Tags:** blockchain, bitcoind, synchronization


---

## 1 answers

### Answer by username_1 on 2021-02-07. Score: 11 | Accepted answer

`bitcoind` supports the argument `-stopatheight`, which takes the number of blocks to download before halting.

> **Comments:**
> **username_0**: Surprising that this flag does not show up while running the `bitcoind -?` command, could you point me to some documentation I can look at?  
> **username_1**: It’s not a normal option. `bitcoind -help -help-debug`  

---

