On-chain governance proposals. Any proposal-related operations, except for viewing operations, must be performed by committee members.
Initiate a proposal.
> createProposal [OwnerAddress] id0 value0 ... idN valueNOwnerAddress(optional) — the address of the account which initiated the transaction. Default: the address of the login account.id0— the serial number of the parameter. Every parameter of the TRON network has a serial number. Please refer tohttp://tronscan.org/#/sr/committee.Value0— the modified value.
In the example, modification No.4 (modifying token issuance fee) costs 1000 TRX as follows:
> createProposal 4 1000
> listproposals # View initiated proposal
{
"proposals": [
{
"proposal_id": 1,
"proposer_address": "TRGhNNfnmgLegT4zHNjEqDSADjgmnHvubJ",
"parameters": [
{
"key": 4,
"value": 1000
}
],
"expiration_time": 1567498800000,
"create_time": 1567498308000
}
]
}The corresponding id is 1.
Approve / disapprove a proposal.
> approveProposal [OwnerAddress] id is_or_not_add_approvalOwnerAddress(optional) — the address of the account which initiated the transaction. Default: the address of the login account.id— ID of the initiated proposal. Example: 1.is_or_not_add_approval— true for approve; false for disapprove.
Example:
> ApproveProposal 1 true # in favor of the offer
> ApproveProposal 1 false # Cancel the approved proposalDelete an existing proposal. The proposal must be canceled by the supernode that initiated the proposal.
> deleteProposal [OwnerAddress] proposalIdproposalId — ID of the initiated proposal. Example: 1.
Example:
> DeleteProposal 1ListProposals— obtain a list of initiated proposals.ListProposalsPaginated— use the paging mode to obtain the initiated proposals.GetProposal— obtain proposal information based on the proposal ID.