Skip to main content

Interface: GovTxExtensionMethods

@shareledgerjs/client.gov.GovTxExtensionMethods

Methods

depositTx

depositTx(proposalId, depositor, amount): MsgDepositEncodeObject

Parameters

NameType
proposalIdGovProposalId
depositorstring
amountCoin[]

Returns

MsgDepositEncodeObject


submitProposal

submitProposal(proposer, initialDeposit, content?): MsgSubmitProposalEncodeObject

Parameters

NameType
proposerstring
initialDepositCoin[]
content?Object
content.descriptionstring
content.titlestring

Returns

MsgSubmitProposalEncodeObject


voteTx

voteTx(proposalId, voter, option): MsgVoteEncodeObject

Parameters

NameType
proposalIdGovProposalId
voterstring
optionVoteOption

Returns

MsgVoteEncodeObject


voteWeightedTx

voteWeightedTx(proposalId, voter, options): MsgVoteWeightedEncodeObject

Parameters

NameType
proposalIdGovProposalId
voterstring
options{ option: VoteOption ; weight: string }[]

Returns

MsgVoteWeightedEncodeObject