curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/votewitnessaccount \
--header 'Content-Type: application/json' \
--data '
{
"owner_address": "THPvaUhoh2Qn2y9THCZML3H815hhFhn5YC",
"votes": [
{
"vote_address": "TDdeM7G4HSxhn2MfovsiMWwXZkiFaHhjMB",
"vote_count": 1000000
},
{
"vote_address": "TAybtvPZCSj5kumiU4myD28xBy6WFtkgCu",
"vote_count": 500000
}
],
"visible": true
}
'{
"visible": true,
"txID": "<string>",
"raw_data": {
"contract": "<array>",
"ref_block_bytes": "<string>",
"ref_block_hash": "<string>",
"expiration": 123,
"timestamp": 123
},
"raw_data_hex": "<string>"
}curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/votewitnessaccount \
--header 'Content-Type: application/json' \
--data '
{
"owner_address": "THPvaUhoh2Qn2y9THCZML3H815hhFhn5YC",
"votes": [
{
"vote_address": "TDdeM7G4HSxhn2MfovsiMWwXZkiFaHhjMB",
"vote_count": 1000000
},
{
"vote_address": "TAybtvPZCSj5kumiU4myD28xBy6WFtkgCu",
"vote_count": 500000
}
],
"visible": true
}
'{
"visible": true,
"txID": "<string>",
"raw_data": {
"contract": "<array>",
"ref_block_bytes": "<string>",
"ref_block_hash": "<string>",
"expiration": 123,
"timestamp": 123
},
"raw_data_hex": "<string>"
}owner_address — address of the account casting votes. Use base58 with visible: true, or hex with visible: false.votes — array of vote allocations, each containing:
vote_address — witness address to vote for (base58 with visible: true, or a 21‑byte hex address starting with 41 when visible: false).vote_count — number of votes to allocate to this witness.visible — optional boolean. When true, addresses are base58; when false, hex. Default is true.visible — boolean indicating whether addresses are in visible formattxID — unique transaction ID for the voting transactionraw_data — raw transaction data containing:
contract — array with witness voting contract detailsref_block_bytes — reference block bytes for transaction validationref_block_hash — hash of the reference blockexpiration — transaction expiration timestamptimestamp — transaction creation timestampraw_data_hex — complete transaction data encoded in hexadecimal formatwallet/votewitnessaccount method is used for:
curl --request POST \
--url 'https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/votewitnessaccount' \
--header 'Content-Type: application/json' \
--data '{
"owner_address": "THPvaUhoh2Qn2y9THCZML3H815hhFhn5YC",
"votes": [
{ "vote_address": "TDdeM7G4HSxhn2MfovsiMWwXZkiFaHhjMB", "vote_count": 1000000 },
{ "vote_address": "TAybtvPZCSj5kumiU4myD28xBy6WFtkgCu", "vote_count": 500000 }
],
"visible": true
}'
Invalid address by matching address format with visible:visible: true (recommended for humans)visible: false and use 21‑byte hex (42 hex chars) starting with 41wallet/listwitnesses and copy candidate addresses from the response.Voting account address. Use base58 with visible: true, or hex with visible: false.
When true, addresses are base58; when false, hex.
Vote transaction for witnesses
Whether addresses are in visible format
Transaction ID for the vote
Raw transaction data in hex format
Was this page helpful?