Top 7.0% forks on proxy.golang.org
proxy.golang.org : github.com/Cerebellum-Network/go-substrate-rpc-client
Package gsrpc (Go Substrate RPC Client) provides APIs and types around Polkadot and any Substrate-based chain RPC calls. This client is modelled after polkadot-js/api(https://github.com/polkadot-js/api). Simply instantiate the gsrpc with a URL of your choice, e. g. and run any of the provided RPC methods from the api: Further examples can be found below. In order to sign extrinsics, you need to have [subkey](https://github.com/paritytech/substrate/tree/master/subkey) installed. Please make sure that you use subkey in the version of your relay chain. The package [types](https://godoc.org/github.com/centrifuge/go-substrate-rpc-client/types/) exports a number of useful basic types including functions for encoding and decoding them. To use your own custom types, you can simply create structs and arrays composing those basic types. Here are some examples using composition of a mix of these basic and builtin Go types: 1. Vectors, lists, series, sets, arrays, slices: https://godoc.org/github.com/centrifuge/go-substrate-rpc-client/types/#example_Vec_simple 2. Structs: https://godoc.org/github.com/centrifuge/go-substrate-rpc-client/types/#example_Struct_simple There are some caveats though that you should be aware of: 1. The order of the values in your structs is of relevance to the encoding. The scale codec Substrate/Polkadot uses does not encode labels/keys. 2. Some types do not have corresponding types in Go. Working with them requires a custom struct with Encoding/Decoding methods that implement the Encodeable/Decodeable interfaces. Examples for that are enums, tuples and vectors with any types, you can find reference implementations of those here: types/enum_test.go , types/tuple_test.go and types/vec_any_test.go For more information about the types sub-package, see https://godoc.org/github.com/centrifuge/go-substrate-rpc-client/types
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/%21cerebellum-%21network/go-substrate-rpc-client
License: Apache-2.0
Latest release: over 5 years ago
First release: over 5 years ago
Namespace: github.com/Cerebellum-Network
Stars: 0 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 27 days ago
github.com/Cerebellum-Network/go-substrate-rpc-client/v9 v9.0.5
Package gsrpc (Go Substrate RPC Client) provides APIs and types around Polkadot and any Substrate...5 versions - Latest release: 10 months ago - 3 dependent packages - 1 stars on GitHub
github.com/cerebellum-network/go-substrate-rpc-client/v9 v9.0.5
Substrate RPC client for go aka GSRPC5 versions - Latest release: 10 months ago - 1 stars on GitHub
github.com/Cerebellum-Network/go-substrate-rpc-client/v8 v8.0.4-rc
Package gsrpc (Go Substrate RPC Client) provides APIs and types around Polkadot and any Substrate...5 versions - Latest release: over 1 year ago - 1 stars on GitHub
github.com/cerebellum-network/go-substrate-rpc-client/v8 v8.0.4-rc
Substrate RPC client for go aka GSRPC5 versions - Latest release: over 1 year ago - 1 stars on GitHub
github.com/Cerebellum-Network/go-substrate-rpc-client/v7 v7.0.1-rc
Package gsrpc (Go Substrate RPC Client) provides APIs and types around Polkadot and any Substrate...2 versions - Latest release: over 1 year ago - 1 dependent package - 1 stars on GitHub
github.com/cerebellum-network/go-substrate-rpc-client/v7 v7.0.1-rc
Substrate RPC client for go aka GSRPC2 versions - Latest release: over 1 year ago - 1 stars on GitHub
github.com/Cerebellum-Network/go-substrate-rpc-client/v6 v6.0.2
Package gsrpc (Go Substrate RPC Client) provides APIs and types around Polkadot and any Substrate...3 versions - Latest release: over 1 year ago - 1 dependent package - 1 stars on GitHub
github.com/cerebellum-network/go-substrate-rpc-client/v6 v6.0.2
Substrate RPC client for go aka GSRPC3 versions - Latest release: over 1 year ago - 1 stars on GitHub
github.com/Cerebellum-Network/go-substrate-rpc-client/v5 v5.0.0-cere
Package gsrpc (Go Substrate RPC Client) provides APIs and types around Polkadot and any Substrate...1 version - Latest release: over 1 year ago - 1 dependent package - 1 stars on GitHub
github.com/cerebellum-network/go-substrate-rpc-client/v5 v5.0.0-cere
Substrate RPC client for go aka GSRPC1 version - Latest release: over 1 year ago - 1 stars on GitHub
github.com/Cerebellum-Network/go-substrate-rpc-client/v4 v4.0.10-cere
Package gsrpc (Go Substrate RPC Client) provides APIs and types around Polkadot and any Substrate...2 versions - Latest release: over 2 years ago - 1 dependent package - 1 dependent repositories - 0 stars on GitHub
github.com/cerebellum-network/go-substrate-rpc-client/v4 v4.0.10-cere
Substrate RPC client for go aka GSRPC2 versions - Latest release: over 2 years ago - 0 stars on GitHub
github.com/cerebellum-network/go-substrate-rpc-client/v3 v3.0.2
Substrate RPC client for go aka GSRPC3 versions - Latest release: almost 4 years ago - 0 stars on GitHub
github.com/Cerebellum-Network/go-substrate-rpc-client/v3 v3.0.2
Substrate RPC client for go aka GSRPC3 versions - Latest release: almost 4 years ago - 0 stars on GitHub
github.com/cerebellum-network/go-substrate-rpc-client/v2 v2.1.0
Substrate RPC client for go aka GSRPC14 versions - Latest release: over 4 years ago - 0 stars on GitHub
github.com/Cerebellum-Network/go-substrate-rpc-client/v2 v2.1.0
Package gsrpc (Go Substrate RPC Client) provides APIs and types around Polkadot and any Substrate...14 versions - Latest release: over 4 years ago - 0 stars on GitHub
github.com/cerebellum-network/go-substrate-rpc-client v2.0.0+incompatible
Package gsrpc (Go Substrate RPC Client) provides APIs and types around Polkadot and any Substrate...16 versions - Latest release: over 4 years ago - 0 stars on GitHub