Registry / networking / ybbus-jsonrpc

ybbus-jsonrpc

JSON →
library2.1.2+incompatiblegogounverified

Package jsonrpc provides a JSON-RPC 2.0 client that sends JSON-RPC requests and receives JSON-RPC responses using HTTP.

go get github.com/ybbus/jsonrpc
INSTALL
IMPORT
SIG · YBBUS-JSONRPC
Y
ybbus-jsonrpc
networkinggov2.1.2+incompatible
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.

jsonrpc
github.com/ybbus/jsonrpc/v2

Call a JSON-RPC method

package main import ( "fmt" "github.com/ybbus/jsonrpc/v2" ) func main() { client := jsonrpc.NewClient("http://localhost:8545") var result string err := client.CallFor(&result, "eth_blockNumber") if err != nil { panic(err) } fmt.Println(result) }
Debug
Known issues
breakingVersion 2.x uses +incompatible; use v3 for proper module versioning.
fix
Use github.com/ybbus/jsonrpc/v3 instead of v2.
affects: 2.x
Upgrade
Version history
2.1.2+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
24
OpenAI (training)
1
Resources
ybbus-jsonrpc — go get ybbus-jsonrpc · libregistry