Created
July 8, 2020 09:09
-
-
Save MariusVanDerWijden/9fc61b41c9f94114cb2f193c89c235ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use a local node: | |
cl, err := ethclient.Dial(“/tmp/geth.ipc”) | |
// Use infura: | |
infura := “wss://goerli.infura.io/ws/v3/xxxxxx” | |
cl, err := ethclient.Dial(infura) | |
// Use a non-local node: | |
cl, err := ethclient.Dial("http://192.168.1.2:8545") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment