Author

Topic: ElectrumX JSON-RPC - get timestamp for block (Read 84 times)

full member
Activity: 209
Merit: 148
April 26, 2022, 03:55:21 PM
#3
The protocol allows you to call blockchain.block.header(height, cp_height=0) with a block height (index) and get the 80 byte header as bytes. The 4 bytes from 68 to 72 are the block's timestamp in little endian order.

Awesome! Thanks; I'll give this a try
legendary
Activity: 3472
Merit: 10611
The protocol allows you to call blockchain.block.header(height, cp_height=0) with a block height (index) and get the 80 byte header as bytes. The 4 bytes from 68 to 72 are the block's timestamp in little endian order.
full member
Activity: 209
Merit: 148
RPC wizards: How would you get the timestamp of a block (or series of blocks), given the block index(es)?
Jump to: