mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue