<p>I think you may be mixing something up. Unfortuntately, there are two similarly named pieces of software, <code>Bitcore</code> and <code>Bitcoin Core</code>, which are different nonetheless.</p>

<ul>
<li><code>Bitcore</code> seems to have a method <code>getBlockHashesByTimestamp</code> which works as you describe.</li>
<li><code>Bitcoin Core</code> only has a method <code>getBlockHash</code> which takes a blockchain height and returns a single block hash. I <a href="https://bitcoin.org/en/developer-reference#getblockhash" rel="nofollow noreferrer">can't find</a> a similar method that takes a timestamp for Bitcoin Core.</li>
</ul>

CC BY-SA 3.0
2017-05-28T02:37:46.703Z
`Bitcore` have a method `getBlockHashesByTimesstamp` and this method call `getblockhashes` in client node. I'm using `Insight API` service and the api get blocks `/blocks` doesn't work because `getblockhashes` isn't available. So can you tell me how to fix this error?
Anh Gien
CC BY-SA 3.0
2017-05-28T04:33:25.060Z
@AnhGien: i think that's a sufficiently large new question to warrant another topic. :)
Murch
CC BY-SA 3.0
2017-05-27T20:01:01.147Z
2017-05-27T20:01:01.147Z
Murch
<p>Just for the record, the RPC call <code>getblockhashes</code> exists in bitcore patches for bitcoin/zcash etc, because the insight block explorer, which uses bitcore patches for the running node, needs to know last blocks.</p>

CC BY-SA 4.0
2018-10-29T13:25:23.857Z
2018-10-29T13:25:23.857Z
Tomas M
<p>I'm testing RPC wallet API methods of Bitcoin 0.13.2, and I realized the method <code>getblockhashes</code> (method returns an array of block hashes for a specified block range ex: between two timestamp) cannot be called, the API returns "Method not found", so is it removed? I'm locking for a method that works like this method.
Thanks.</p>

<json-rpc><bitcoin-cli>
RPC Wallet API methods "getblockhashes" was removed?
Anh Gien
# RPC Wallet API methods "getblockhashes" was removed?

(Asked by: username_0 on 2017-05-26)

I'm testing RPC wallet API methods of Bitcoin 0.13.2, and I realized the method `getblockhashes` (method returns an array of block hashes for a specified block range ex: between two timestamp) cannot be called, the API returns "Method not found", so is it removed? I'm locking for a method that works like this method.
Thanks.

**Tags:** json-rpc, bitcoin-cli


---

## 2 answers

### Answer by username_1 on 2017-05-27. Score: 0 | Accepted answer

I think you may be mixing something up. Unfortuntately, there are two similarly named pieces of software, `Bitcore` and `Bitcoin Core`, which are different nonetheless.

* `Bitcore` seems to have a method `getBlockHashesByTimestamp` which works as you describe.
* `Bitcoin Core` only has a method `getBlockHash` which takes a blockchain height and returns a single block hash. I [can't find](https://bitcoin.org/en/developer-reference#getblockhash) a similar method that takes a timestamp for Bitcoin Core.

> **Comments:**
> **username_0**: `Bitcore` have a method `getBlockHashesByTimesstamp` and this method call `getblockhashes` in client node. I'm using `Insight API` service and the api get blocks `/blocks` doesn't work because `getblockhashes` isn't available. So can you tell me how to fix this error?  
> **username_1**: @username_0: i think that's a sufficiently large new question to warrant another topic. :)  

---

### Answer by username_2 on 2018-10-29. Score: 1

Just for the record, the RPC call `getblockhashes` exists in bitcore patches for bitcoin/zcash etc, because the insight block explorer, which uses bitcore patches for the running node, needs to know last blocks.


---

