Registry / networking / onrik-ethrpc

onrik-ethrpc

JSON →
library1.2.0gogounverified

A Go client for interacting with Ethereum nodes via JSON-RPC, providing methods for blockchain queries and transactions.

go get github.com/onrik/ethrpc
INSTALL
IMPORT
SIG · ONRIK-ETHRPC
O
onrik-ethrpc
networkinggov1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ethrpc
✓ github.com/onrik/ethrpc

Connects to an Ethereum node and retrieves the latest block number.

package main import ( "fmt" "github.com/onrik/ethrpc" ) func main() { client := ethrpc.New("https://mainnet.infura.io/v3/YOUR-PROJECT-ID") blockNumber, err := client.EthBlockNumber() if err != nil { panic(err) } fmt.Println("Latest block:", blockNumber) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
onrik-ethrpc — go get onrik-ethrpc · libregistry