Closed shaokun11 closed 2 years ago
I found the error position is here
You should provide a right provider url here. You can go to https://infura.io and register your api key, then replace your api key in the code.
now it work, thanks your efffort
go1.17.5 windows when init like
web31, err := web3.NewWeb3(infuraURL)
,the error is dial unix https://mainnet.infura.io/v3/xxx: connect: An invalid argument was supplied