HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
Guides

getProposalById

Query proposal based on ID.

getProposalById(id)

PARAMS

  1. id(String)*

proposal id.

RETURN

Proposal object.

THROWS

IllegalException, if fail to get proposal.

EXAMPLE

wrapper.getProposalById("15");

The result is:

proposal_id: 15
  proposer_address: "A\fLd \037f\243\'\031\317\232\264\346\364\256\3263\vH\275"
  parameters {
    key: 0
    value: 800000
  }
  expiration_time: 1582011000000
  create_time: 1582010070000
  approvals: "A\fLd \037f\243\'\031\317\232\264\346\364\256\3263\vH\275"
  state: DISAPPROVED