The Gov module is responsible for handling Governance. Fetch information like proposals, votes and tally.

Example

To use Gov methods, initialise a ChainGrpcGovApi object to with a gRPC endpoint. An endpoint can be retrieved by using networkEndpoints.

const endpoint =  getEndpointsForNetwork(Network.Devnet).grpcEndpoint;
const client = new ChainGrpcGovApi(endpoint);
const response = await client.fetchProposal(1);

Hierarchy

  • default
    • ChainGrpcGovApi

Generated using TypeDoc