GET: /governance/proposals
ProposalRequest
The request to the Proposal API can specify a number of filters, such as which ids to retrieve information about or state of proposals.
Type | Key | Description |
uint32 |
| List of ids to filter on, e.g.:?proposal_ids[]=23,25 |
string |
| The state of the proposal to filter on, (e.g.: "Pending", "Active", "Canceled", "Defeated", "Succeeded", "Queued", "Expired", "Executed") |
uint32 |
| Offset of pagination, default is 0 |
uint32 |
| Number of proposals to include in the response, default is 100 |
ProposalResponse
The Proposal API returns a list of proposals that match the given filters on the request in descending order by proposal_id.
Type | Key | Description |
bool |
| If set false, indicates an error returning data. |
uint32 |
| Offset of pagination |
uint32 |
| Limit of pagination |
uint32 |
| Total count of matching proposals |
Proposal |
| The list of proposals matching the requested filter |
Proposal
Type | Key | Description |
uint32 |
| Unique id for looking up a proposal |
string |
| A description of the actions the proposal will take if successful |
bytes |
| The address to send the calldata to |
string |
| The value of ETH to send with the transaction |
string |
| The function signature of the function to call at the target address |
string |
| The encoded argument data for the action |
uint32 |
| Created block number |
string |
| Created transaction hash |
uint32 |
| Created block timestamp |
uint32 |
| Started block number |
string |
| Started transaction hash |
uint32 |
| Started block timestamp |
uint32 |
| Canceled block number |
string |
| Canceled transaction hash |
uint32 |
| Canceled block timestamp |
uint32 |
| End block number |
string |
| End transaction hash |
uint32 |
| End block timestamp |
uint32 |
| Queued block number |
string |
| Queued transaction hash |
uint32 |
| Queued block timestamp |
uint32 |
| Executed block number |
string |
| Executed transaction hash |
uint32 |
| Executed block timestamp |
bytes |
| Proposer address |
uint32 |
| eta |
string |
| The number of votes in support of the proposal |
string |
| The number of votes in opposition to this proposal |
bool |
| Set true if canceled |
bool | executed | Set true if executed |
string |
| State of |
uint32 |
| Voter count |
uint32 |
| Last calculated block number |
Last updated