1、调整gas费浮动比例为90%
This commit is contained in:
25
utils/ethbalanceofhelper/balanceof_helper_test.go
Normal file
25
utils/ethbalanceofhelper/balanceof_helper_test.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user