getProposal

Get proposal info by proposal id.

Usage

visionWeb.vs.getProposal(id);

Parameters

ParameterDescriptionTypeDefault
idProposal id.number-

Returns

Object.

Example

visionWeb.vs.getProposal(1);
> {
    proposal_id: 1,
    proposer_address: '4653cd48c2723cb985679f4e44d99c64d22d89f41d',
    parameters: [ [Object] ],
    expiration_time: 1614528000000,
    create_time: 1606997856000,
    approvals: [
      '4653cd48c2723cb985679f4e44d99c64d22d89f41d',
      '46555e131d1c696677972a81bd86ff9975fd3b4792',
      '461d65a491b4e3f15174c4023ce9560018f7a985bb',
    ],
    state: 'APPROVED'
  },