/wallet/votewitnessaccount REST API Endpoint
Body Parameters
owner_address
string
REQUIRED
Loading...
votes
object
Loading...
vote_address
string
Loading...
vote_count
integer
Loading...
permission_id
integer
Loading...
visible
boolean
Loading...
Returns
visible
Loading...
txID
Loading...
raw_data
Loading...
contract
Loading...
parameter
Loading...
value
Loading...
owner_address
Loading...
votes
Loading...
vote_address
Loading...
vote_count
Loading...
type_url
Loading...
type
Loading...
ref_block_bytes
Loading...
ref_block_hash
Loading...
expiration
Loading...
timestamp
Loading...
raw_data_hex
Loading...
Request
1curl --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": 110}11],12"visible": true13}'
1curl --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": 110}11],12"visible": true13}'
1const myHeaders = new Headers();2myHeaders.append("accept", "application/json");3myHeaders.append("content-type", "application/json");45const raw = JSON.stringify({6"owner_address": "TC7xSvcMqW7PXuZXAuzhie81g22fA45kyY",7"votes": [8{9"vote_address": "TTW663tQYJTTCtHh6DWKAfexRhPMf2DxQ1",10"vote_count": 111}12],13"visible": true14});1516const requestOptions = {17method: "POST",18headers: myHeaders,19body: raw,20redirect: "follow"21};2223fetch("https://docs-demo.tron-mainnet.quiknode.pro/wallet/votewitnessaccount", requestOptions)24.then((response) => response.text())25.then((result) => console.log(result))26.catch((error) => console.error(error));
1const myHeaders = new Headers();2myHeaders.append("accept", "application/json");3myHeaders.append("content-type", "application/json");45const raw = JSON.stringify({6"owner_address": "TC7xSvcMqW7PXuZXAuzhie81g22fA45kyY",7"votes": [8{9"vote_address": "TTW663tQYJTTCtHh6DWKAfexRhPMf2DxQ1",10"vote_count": 111}12],13"visible": true14});1516const requestOptions = {17method: "POST",18headers: myHeaders,19body: raw,20redirect: "follow"21};2223fetch("https://docs-demo.tron-mainnet.quiknode.pro/wallet/votewitnessaccount", requestOptions)24.then((response) => response.text())25.then((result) => console.log(result))26.catch((error) => console.error(error));
1import requests2import json34url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/votewitnessaccount"56payload = json.dumps({7"owner_address": "TC7xSvcMqW7PXuZXAuzhie81g22fA45kyY",8"votes": [9{10"vote_address": "TTW663tQYJTTCtHh6DWKAfexRhPMf2DxQ1",11"vote_count": 112}13],14"visible": True15})16headers = {17'accept': 'application/json',18'content-type': 'application/json'19}2021response = requests.request("POST", url, headers=headers, data=payload)2223print(response.text)24
1import requests2import json34url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/votewitnessaccount"56payload = json.dumps({7"owner_address": "TC7xSvcMqW7PXuZXAuzhie81g22fA45kyY",8"votes": [9{10"vote_address": "TTW663tQYJTTCtHh6DWKAfexRhPMf2DxQ1",11"vote_count": 112}13],14"visible": True15})16headers = {17'accept': 'application/json',18'content-type': 'application/json'19}2021response = requests.request("POST", url, headers=headers, data=payload)2223print(response.text)24
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/votewitnessaccount")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["accept"] = "application/json"12request["content-type"] = "application/json"13request.body = JSON.dump({14"owner_address": "TC7xSvcMqW7PXuZXAuzhie81g22fA45kyY",15"votes": [16{17"vote_address": "TTW663tQYJTTCtHh6DWKAfexRhPMf2DxQ1",18"vote_count": 119}20],21"visible": true22})2324response = https.request(request)25puts response.read_body26
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/votewitnessaccount")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["accept"] = "application/json"12request["content-type"] = "application/json"13request.body = JSON.dump({14"owner_address": "TC7xSvcMqW7PXuZXAuzhie81g22fA45kyY",15"votes": [16{17"vote_address": "TTW663tQYJTTCtHh6DWKAfexRhPMf2DxQ1",18"vote_count": 119}20],21"visible": true22})2324response = https.request(request)25puts response.read_body26
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free