Skip to main content

/wallet/votewitnessaccount REST API Endpoint

Vote for witnesses.

Updated on
Oct 8, 2024

/wallet/votewitnessaccount REST API Endpoint

Body Parameters

owner_address
string
REQUIRED
The owner address, encoded in hexString
votes
object
The votes object which contains the following fields
vote_address
string
The address of the witness you want to vote encoded in hexString
vote_count
integer
The number of votes you want to vote
permission_id
integer
The ID of the permission that is required to execute the transaction
visible
boolean
A boolean value indicating whether the address is in base58 format

Returns

visible
Indicates if the transaction is publicly visible
txID
An unique identifier for the transaction
raw_data
The raw_data object which contains the following fields:
contract
An array of contracts included in the transaction
parameter
The parameter object which contains the following fields:
value
The value object which contains the following fields:
owner_address
The address of the transaction initiator
votes
An array of vote details
vote_address
The address receiving the vote
vote_count
The number of votes given
type_url
Identifies the type of contract being executed
type
The type of contract involved in the transaction
ref_block_bytes
The bytes of the previous block hash
ref_block_hash
The hash of the previous block
expiration
The expiration time of the transaction
timestamp
The timestamp of the transaction
raw_data_hex
The raw transaction data, encoded in hexadecimal format
Request
1
curl --location 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/votewitnessaccount' \
2
--header 'accept: application/json' \
3
--header 'content-type: application/json' \
4
--data '{
5
"owner_address": "TC7xSvcMqW7PXuZXAuzhie81g22fA45kyY",
6
"votes": [
7
{
8
"vote_address": "TTW663tQYJTTCtHh6DWKAfexRhPMf2DxQ1",
9
"vote_count": 1
10
}
11
],
12
"visible": true
13
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free