Skip to content

Agoric/estimator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Block height estimator for Tendermint web RPC endpoints

This utility will help estimate the time for a future blockheight, or the future blockheight for a time.

Usage:

Height estimation at future date

go run main.go -date "Aug 21, 2023 1:23PM PDT" -rpc https://main.rpc.agoric.net:443 -samples 500
 100% |███████████████████████████████████████████████████████| (100/100, 71 it/s)        

Estimated block height at Mon Aug 21 13:23:00 PDT 2023 is 11234156

Date estimation at future height

go run main.go -height 11260923 -rpc https://main.rpc.agoric.net:443 -samples 1000
 100% |██████████████████████████████████████████████████████| (1000/1000, 71 it/s)         

Average Block Time: 6.291125s (1000 samples)
Estimated time for height 11260923:
        Local: Mon Aug 21 06:01:08 PDT 2023
          UTC: Mon Aug 21 13:01:08 UTC 2023
   Asia/Tokyo: Mon Aug 21 22:01:08 JST 2023
Australia/NSW: Mon Aug 21 23:01:08 AEST 2023
Asia/Istanbul: Mon Aug 21 16:01:08 +03 2023
   US/Pacific: Mon Aug 21 06:01:08 PDT 2023
   US/Eastern: Mon Aug 21 09:01:08 EDT 2023

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages