Registry / crypto / centrifuge-go-substrate-rpc-client-v2

centrifuge-go-substrate-rpc-client-v2

JSON →
library2.1.0gogounverified

Provides APIs and types for interacting with Polkadot and Substrate-based blockchain RPC calls, modeled after polkadot-js/api.

go get github.com/centrifuge/go-substrate-rpc-client/v2
INSTALL
IMPORT
SIG · CENTRIFUGE-GO-SUBS
C
centrifuge-go-substrate-rpc-client-v2
cryptogov2.1.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.

gsrpc
github.com/centrifuge/go-substrate-rpc-client/v2

Creates a new Substrate API client connected to Polkadot.

package main import ( "fmt" gsrpc "github.com/centrifuge/go-substrate-rpc-client/v2" ) func main() { api, err := gsrpc.NewSubstrateAPI("wss://rpc.polkadot.io") if err != nil { panic(err) } fmt.Println(api) }
Debug
Known issues
breakingVersion 2.x has breaking changes from 1.x, including API restructuring and type changes.
fix
Refer to the migration guide in the repository.
affects: >=2.0.0 <3.0.0
Upgrade
Version history
2.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
Amazon
1
Resources
centrifuge-go-substrate-rpc-client-v2 — go get centrifuge-go-substrate-rpc-client-v2 · libregistry