Get a governance proposal by id

Changed on
get/api/v1/gov/proposal/{id}

Request

  • Base URL
    http://localhost:5001
  • URL
    http://localhost:5001/api/v1/gov/proposal/{id}
  • Auth
    none declared

Path parameters

idinteger required

Proposal id

Response

A Governance proposal.

idnumber required
contentstring required
type'default' | 'defaultWithWasm' | 'pgfSteward' | 'pgfFunding' required
tallyType'twoFifths' | 'oneHalfOverOneThird' | 'lessOneHalfOverOneThirdNay' required
datastring
authorstring required
startEpochnumber required
endEpochnumber required
activationEpochnumber required
startTimestring required
endTimestring required
currentTimestring required
activationTimestring required
status'pending' | 'voting' | 'passed' | 'rejected' | 'executedPassed' | 'executedRejected' required
yayVotesnumber float required
nayVotesnumber float required
abstainVotesnumber float required

Changes

    • breaking

      the response's property type changed from string to number, and format from no format to float for status

    • breaking

      the response's property type changed from string to number for status

    • breaking

      the response's property type changed from string to number for status

    • breaking

      the response's property type changed from string to number for status

    • breaking

      the response's property type changed from string to number, and format from no format to float for status

    • breaking

      the response's property type changed from string to number for status

    • breaking

      the response's property type changed from string to number, and format from no format to float for status

    • warning

      added the new executedRejected enum value to the response property for the response status

    • info

      removed the ExecutedRejected enum value from the response property for the response status