Skip to main content

GetBlockNumber

get the number of the most recent block.

func GetBlockNumber() (blockNumber uint64, err error)
func main() {
...
alchemy := gas.NewAlchemy(setting)
res, _ := alchemy.Core.GetBlockNumber()
}