Queries proposal based on ID and returns proposal details.
Returns
Field | Type | Description |
---|---|---|
proposal_id | int64 | Proposal ID |
proposer_address | string | Proposer address |
parameters | map<int64, int64> | Chain params |
parameters.key | string | Param ID |
parameters.value | int64 | Param value |
expiration_time | int64 | Proposal expiration time |
create_time | int64 | Proposal creation time |
approvals | string array | Approvers address |
state | enum | State of the proposal, has four enum values: PENDING, DISAPPROVED, APPROVED, and CANCELED |
{
"id":1
}
curl --location --request POST '/wallet/getproposalbyid' \
--header 'Content-Type: application/json' \
--data-raw '{
"id":1
}'
{
"proposal_id": 1,
"proposer_address": "41f16412b9a17ee9408646e2a21e16478f72ed1e95",
"parameters": [
{
"key": 11,
"value": 10
}
],
"expiration_time": 1575871200000,
"create_time": 1575606708000,
"approvals": [
"41f16412b9a17ee9408646e2a21e16478f72ed1e95"
],
"state": "APPROVED"
}