Skip to content

availproject/avail-go-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

avail-go-sdk

An sdk to use avail network using Golang. This is wrapper around centrigue's go-substrate-rpc-client

prerequisites

Install go globally if you haven't already

Structure

This SDK is split into two main parts:

  1. 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.
  2. 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.

Folder Structure

  • src/config: Contains the loader to read the config file when connecting to chain
  • src/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 calls
  • src/sdk/tx: Includes the interfaces related to sdk

Examples

the examples folder and the readme contains examples and documentation on using the avail-go-sdk

Error Reporting

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.