Skip to content

Instantly share code, notes, and snippets.

@MariusVanDerWijden
Created July 8, 2020 09:09
Show Gist options
  • Save MariusVanDerWijden/9fc61b41c9f94114cb2f193c89c235ad to your computer and use it in GitHub Desktop.
Save MariusVanDerWijden/9fc61b41c9f94114cb2f193c89c235ad to your computer and use it in GitHub Desktop.
// 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