1、调整gas费浮动比例为90%

This commit is contained in:
2025-05-17 09:10:14 +08:00
parent 38a5acface
commit 8113868cc0
19 changed files with 397 additions and 23 deletions

View File

@ -0,0 +1,25 @@
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)
}