package ethbalanceofhelper import ( "fmt" "testing" ) func TestBalanceOfHelper(t *testing.T) { api := "https://stylish-cool-fire.ethereum-sepolia.quiknode.pro/17572db4c091accfa5dc6faa0c60a805e5173459" proxy := "http://127.0.0.1:7890" client, err := EthClientWithProxy(api, proxy) if err != nil { t.Error(err) } address := "0x5079a681a2a2344f4da79a21e187d6ed075ba90a" balance, err := GetBalance(client, "0", address, 18) if err != nil { t.Error(err) } fmt.Println("余额:", balance) }