I'd like to use the Monero API. Is there a REST API method which can fetch Monero blocks by specific date?

Thanks Sajudeen



However, you can get blocks by height, and height maps fairly well to date. There are on average two minutes per block since height 1009827, and one minute per block before that. It's then a simple conversion.

To get blocks by height, use the getblockheadersrange, which has start_height and end_height parameters.


curl -X POST -d '{"jsonrpc":"2.0","id":"0","method":"get_block_headers_range","params":{"start_height":1545999,"end_height":1546000}}' -H 'Content-Type: application/json'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.