/wallet/votewitnessaccount REST API Endpoint
身體參數
owner_address
字串
必填
載入中...
票數
物件
載入中...
vote_address
字串
載入中...
vote_count
整數
載入中...
permission_id
整數
載入中...
visible
布林值
載入中...
退貨
visible
載入中...
txID
載入中...
raw_data
載入中...
合約
載入中...
parameter
載入中...
值
載入中...
owner_address
載入中...
票數
載入中...
vote_address
載入中...
vote_count
載入中...
type_url
載入中...
類型
載入中...
ref_block_bytes
載入中...
ref_block_hash
載入中...
expiration
載入中...
時間戳記
載入中...
raw_data_hex
載入中...
請求
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.追加("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 = {17方法: 「POST」,18標題: myHeaders,19正文: 原始,20重定向: 「追蹤」21};2223fetch("https://docs-demo.tron-mainnet.quiknode.pro/wallet/votewitnessaccount", requestOptions)24.接著((回應) => 回應.文字())25.接著((結果) => 控制台.log(結果))26.catch((錯誤) => 控制台.錯誤(錯誤));
1const myHeaders = new Headers();2myHeaders.追加("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 = {17方法: 「POST」,18標題: myHeaders,19正文: 原始,20重定向: 「追蹤」21};2223fetch("https://docs-demo.tron-mainnet.quiknode.pro/wallet/votewitnessaccount", requestOptions)24.接著((回應) => 回應.文字())25.接著((結果) => 控制台.log(結果))26.catch((錯誤) => 控制台.錯誤(錯誤));
1匯入 請求2import json34url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/votewitnessaccount"56有效載荷 = json.dumps({7"owner_address": "TC7xSvcMqW7PXuZXAuzhie81g22fA45kyY",8"votes": [9{10"vote_address": "TTW663tQYJTTCtHh6DWKAfexRhPMf2DxQ1",11"vote_count": 112}13],14"visible": True15})16標題 = {17「接受」: 'application/json',18'content-type': 'application/json'19}2021回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)2223列印(回應.text)24
1匯入 請求2import json34url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/votewitnessaccount"56有效載荷 = json.dumps({7"owner_address": "TC7xSvcMqW7PXuZXAuzhie81g22fA45kyY",8"votes": [9{10"vote_address": "TTW663tQYJTTCtHh6DWKAfexRhPMf2DxQ1",11"vote_count": 112}13],14"visible": True15})16標題 = {17「接受」: 'application/json',18'content-type': 'application/json'19}2021回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)2223列印(回應.text)24
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/votewitnessaccount")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11請求["接受"] = "application/json"12request["content-type"] = "application/json"13請求。正文 = JSON.dump({14"owner_address": "TC7xSvcMqW7PXuZXAuzhie81g22fA45kyY",15"votes": [16{17"vote_address": "TTW663tQYJTTCtHh6DWKAfexRhPMf2DxQ1",18"vote_count": 119}20],21"visible": true22})2324回應 = https.請求(請求)25將回應。read_body26
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/votewitnessaccount")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11請求["接受"] = "application/json"12request["content-type"] = "application/json"13請求。正文 = JSON.dump({14"owner_address": "TC7xSvcMqW7PXuZXAuzhie81g22fA45kyY",15"votes": [16{17"vote_address": "TTW663tQYJTTCtHh6DWKAfexRhPMf2DxQ1",18"vote_count": 119}20],21"visible": true22})2324回應 = https.請求(請求)25將回應。read_body26