website: rectifed RPC connection docs (#27215)

* website: rectified RPC connect docs

* Update docs/developers/dapp-developer/native-bindings.md

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
pull/27284/head
Manas Nagaraj 2 years ago committed by GitHub
parent 25faad8fe9
commit 41ecd256ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/developers/dapp-developer/native-bindings.md

@ -220,7 +220,7 @@ const key = `<<json object from keystore>>`
func main() {
// Create an IPC based RPC connection to a remote node and an authorized transactor
conn, err := rpc.NewIPCClient("/home/go-ethereum/goerli/geth.ipc")
conn, err := ethclient.Dial("/home/go-ethereum/goerli/geth.ipc")
if err != nil {
log.Fatalf("Failed to connect to the Ethereum client: %v", err)
}

Loading…
Cancel
Save