nostr:npub1yx6pjypd4r7qh2gysjhvjd9l2km6hnm4amdnjyjw3467fy05rf0qfp7kza is it true that if you run your own node you can see the block time to the second not just the minute

Reply to this note

Please Login to reply.

Discussion

You can run bitcoin-cli getblockstats {hash_or_height} to see the stats of the latest block. It will give you the Unix timestamp.

For example, block 819898 has a time value of 1701787383 which translates to:

Tue Dec 05 2023 14:43:03 GMT+0000

Thank you for this

yes, with the caveat that the time for block is set by the miner and must adhere to consensus rules

Im trying to put together a big bet pool for the first block of the new year but I need someone that can see the block time to the second in case they come in close