Go Substrate RPC Client (GSRPC)
Substrate RPC client in Go. It provides APIs and types around Polkadot and any Substrate-based chain RPC calls.
This client is modelled after polkadot-js/api.
This package is feature complete, but it is relatively new and might still contain bugs. We advice to use it with caution in production. It comes without any warranties, please refer to LICENCE for details.
Documentation & Usage Examples
Please refer to https://godoc.org/github.com/kinosang/go-substrate-rpc-client
- Install dependencies by running
- Run tests
make lint(you can use
make lint-fixto automatically fix issues)
Run tests in a Docker container against the Substrate Default Docker image
- Run the docker container
Run tests locally against the Substrate Default Docker image
- Start the Substrate Default Docker image:
- In another terminal, run the tests against that image:
- Visit https://polkadot.js.org/apps for inspection
Run tests locally against any substrate endpoint
- Set the endpoint:
- Run the tests