VoteWitnessContract
, the fields in raw_data.contract[0].parameter.value
in the transaction are as follows:Field | Type | Description |
---|---|---|
owner_address | string | Account address |
votes | Vote[] | Voting list for super representatives, where the fields contained in each Vote are: vote_address: The address of the super candidate. vote_count: the number of votes for super candidates |
{
"owner_address": "PHqgRM8giN6Nr9DgA1FybUjKFwd79cxhyp",
"visible": true
}
curl --location --request POST '/wallet/votewitnessaccount' \
--header 'Content-Type: application/json' \
--data-raw '{
"owner_address": "PHqgRM8giN6Nr9DgA1FybUjKFwd79cxhyp",
"visible": true
}'
{
"Error": "class org.tron.core.exception.ContractValidateException : VoteNumber must more than 0"
}