/wallet/votewitnessaccount REST API Endpoint
신체 매개변수
owner_address
문자열
필수
로딩 중...
투표 수
객체
로딩 중...
vote_address
문자열
로딩 중...
vote_count
정수
로딩 중...
permission_id
정수
로딩 중...
visible
부울
로딩 중...
반품
visible
로딩 중...
txID
로딩 중...
raw_data
로딩 중...
contract
로딩 중...
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--헤더 '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--헤더 '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.추가("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본문: raw,20리디렉션: "follow"21};2223fetch("https://docs-demo.tron-mainnet.quiknode.pro/wallet/votewitnessaccount", requestOptions)24.그런 다음((응답) => 응답.text())25.그런 다음((결과) => console.log(result))26.catchcatch ((오류) => 콘솔.오류(오류));
1const myHeaders = new Headers();2myHeaders.추가("accept", "application/json");3myHeaders.추가("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본문: raw,20리디렉션: "follow"21};2223fetch("https://docs-demo.tron-mainnet.quiknode.pro/wallet/votewitnessaccount", requestOptions)24.그런 다음((응답) => 응답.text())25.그런 다음((결과) => console.log(result))26.catchcatch ((오류) => 콘솔.오류(오류));
1import 요청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, 헤더=헤더, data=페이로드)2223인쇄(응답.text)24
1import 요청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, 헤더=헤더, data=페이로드)2223인쇄(응답.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.호스트, url.포트)8https.use_ssl = true910요청 = 순::HTTP::POST.새(URL)11요청["수락"] = "application/json"12요청["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
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/votewitnessaccount")67https = Net::HTTP.new(url.호스트, url.포트)8https.use_ssl = true910요청 = 순::HTTP::POST.새(URL)11요청["수락"] = "application/json"12요청["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