An sdk to use avail network using Golang. This is wrapper around centrigue's go-substrate-rpc-client
Install go globally if you haven't already
This SDK is split into two main parts:
- GSRPC Wrapper: This allows you to use all the Polkadot JS functions and types to interact with the chain. For more information and documentation, please refer to the GSRPC Documentation.
- Opinionated SDK: A simpler, more streamlined way to interact with the chain. It offers less customization but provides an easier interface. This SDK will be continuously improved to include everything needed for seamless chain interaction.
src/config
: Contains the loader to read the config file when connecting to chainsrc/extrinsic
: Wrapper around GSRPC so that extrinsic can be signed with avail specific AppID extension- src/header`: Includes the custom header for avail with added extension field and its custom enum decoding
src/rpc
: Wraper around GSRPC block specific rpc calls inorder to accustom the custom header field for avail. Also contains the structures for kate related calls.src/sdk
: Contains all interfaces related to the SDK, representing the opinionated part of Avail-go-sdk.src/sdk/call
: Contains the kate related RPC callssrc/sdk/tx
: Includes the interfaces related to sdk
the examples folder and the readme contains examples and documentation on using the avail-go-sdk
In case you encounter a bug, don't hesitate to open an issue with the maximum amount of detail and we will deal with it as soon as possible.