以太坊 以太坊如何获取当前区块数 ethereum-go how to get the latest block package main import ( "context" "fmt" "strconv" "time" "github.com/ethereum/go-ethereum/rpc" ) type Block struct { Number string } func getBlockNumber(client *rpc.Client) { ctx, cancel := context.WithTimeout(