ProposalApprove
Approves proposed transaction.
This method will use 30
Compute Units.
Parameters
owner_address
- String - Approver addressproposal_id
- int32 - Proposal IDis_add_approval
- boolean - Whether to agree with the proposalpermission_id
- int32 - Optional, for multi-signature usevisible
- boolean - Optional. Specifies whether the address is in Base58 format (default: false)
Returns
Transaction object - JSON object: Unsigned transaction, please refer to the Transaction chapter for the fields contained in it. Since the transaction type is ProposalApproveContract
, the fields contained in raw_data.contract[0].parameter.value
in the transaction are as follows:
owner_address
string
Account address
proposal_id
int64
Proposal id
is_add_approval
bool
Whether to agree with the proposal
curl https://mainnet.tron.validationcloud.io/v1/<YOUR_API_KEY_HERE>/wallet/proposalapprove \
-X POST \
-H "Content-Type: application/json" \
-d '
{
"owner_address": "TUeTYVYJFfmBj3hVyopAZB97yc432Aay4N",
"proposal_id": 109,
"is_add_approval": true,
"visible": true
}
'
Last updated
Was this helpful?