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>
This commit is contained in:
parent
25faad8fe9
commit
41ecd256ed
@ -220,7 +220,7 @@ const key = `<<json object from keystore>>`
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// Create an IPC based RPC connection to a remote node and an authorized transactor
|
// 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 {
|
if err != nil {
|
||||||
log.Fatalf("Failed to connect to the Ethereum client: %v", err)
|
log.Fatalf("Failed to connect to the Ethereum client: %v", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user