RPC Wallet API methods "getblockhashes" was removed?

1

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.

Anh Gien

Posted 2017-05-26T08:30:53.830

Reputation: 13

Answers

0

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 a similar method that takes a timestamp for Bitcoin Core.

Murch

Posted 2017-05-26T08:30:53.830

Reputation: 41 609

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 2017-05-28T02:37:46.703

@AnhGien: i think that's a sufficiently large new question to warrant another topic. :)Murch 2017-05-28T04:33:25.060

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.

Tomas M

Posted 2017-05-26T08:30:53.830

Reputation: 111