func EstimateTargetBlocknumber(utcTimestamp int64) int64 {
	// Calculate block-difference from reference block
	referenceBlockNumber := int64(12323940)
	referenceBlockTimestamp := int64(1619546404) // 2021-04-27 19:49:13 +0200 CEST

	secDiff := referenceBlockTimestamp - utcTimestamp
	// fmt.Println("secDiff", secDiff)
	blocksDiff := secDiff / 13
	targetBlock := referenceBlockNumber - blocksDiff
	return targetBlock
}
// Roughly estimate a block number by target timestamp (might be off by a lot)
Roughly estimate a block number by target timestamp (might be off by a lot)
// Roughly estimate a block number by target timestamp ( might be off by a lot )
func EstimateTargetBlocknumber(utcTimestamp int64) int64 {
	referenceBlockNumber := int64(12323940)
	referenceBlockTimestamp := int64(1619546404) 
	secDiff := referenceBlockTimestamp - utcTimestamp
	blocksDiff := secDiff / 13
	targetBlock := referenceBlockNumber - blocksDiff
	return targetBlock
}
func EstimateTargetBlocknumber ( utcTimestamp int64 ) int64 { referenceBlockNumber := int64 ( 12323940 ) referenceBlockTimestamp := int64 ( 1619546404 ) secDiff := referenceBlockTimestamp - utcTimestamp blocksDiff := secDiff / 13 targetBlock := referenceBlockNumber - blocksDiff return targetBlock }
Roughly estimate a block number by target timestamp (might be off by a lot)
Roughly estimate a block number by target timestamp ( might be off by a lot )
// Calculate block-difference from reference block // 2021-04-27 19:49:13 +0200 CEST // fmt.Println("secDiff", secDiff)