# Proposal

Terra.proposal(proposal_id)

Given a proposal ID, you can instantiate an ProposalQuery that exposes an API that regroups functions for polling information about the proposal.

proposal = terra.proposal(3)

# Proposal Info

ProposalQuery.info()
info = proposal.info()

# Returns

Proposal

Proposal information of ID.

# Proposal Proposer

ProposalQuery.proposer()
balances = proposal.proposer()

# Returns

AccAddress

Proposal's proposer.

# Proposal Deposits

ProposalQuery.deposits()
balances = proposal.deposits()

# Returns

Coins

Proposal's current deposits.

# Proposal Votes

ProposalQuery.votes()
proposer = proposal.votes()

# Returns

JiguBox[AccAddress, str] with keys the account addresses of voters, and values "Yes", "Abstain", "No", or "NoWithVeto".

# Proposal Tally

ProposalQuery.tally()
tally = proposal.tally()

# Returns

JiguBox[str, Coin] with keys "Yes", "Abstain", "No", or "NoWithVeto" and values the Luna amount of votes each category has received.

Updated on: 4/10/2020, 9:57:44 PM