Link Search Menu Expand Document

Gov queries

Create a queryClient

// Instantiate tmClient
const tmClient = await Tendermint34Client.connect(rpcUrl);

// Create client with govExtension
const client = QueryClient.withExtensions(tmClient, setupGovExtension);

Available query methods

Method Description Params
.gov.proposals   proposalStatus: ProposalStatus,depositor: string, voter: string, paginationKey?: Uint8Array
.gov.proposal   proposalId: GovProposalId
.gov.deposits   proposalId: GovProposalId, paginationKey?:Uint8Array
.gov.deposit   proposalId: GovProposalId, depositorAddress: string
.gov.tally   proposalId: GovProposalId
.gov.votes   proposalId: GovProposalId, paginationKey?: Uint8Array
.gov.vote   proposalId: GovProposalId, voterAddress: string

🔗 Back to query overview