/wallet/votewitnessaccount REST API Endpoint
Parámetros corporales
dirección_del_propietario
cadena
OBLIGATORIO
Cargando...
votes
objeto
Cargando...
vote_address
cadena
Cargando...
vote_count
entero
Cargando...
permission_id
entero
Cargando...
visible
booleano
Cargando...
Devoluciones
visible
Cargando...
txID
Cargando...
datos_sin_procesar
Cargando...
contrato
Cargando...
parámetro
Cargando...
valor
Cargando...
dirección_del_propietario
Cargando...
votes
Cargando...
vote_address
Cargando...
vote_count
Cargando...
type_url
Cargando...
tipo
Cargando...
ref_block_bytes
Cargando...
ref_block_hash
Cargando...
caducidad
Cargando...
marca de tiempo
Cargando...
datos_brutos_hex
Cargando...
Solicitud
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",18encabezados: myHeaders,19cuerpo: sin procesar,20redirigir: «seguir»21};2223fetch("https://docs-demo.tron-mainnet.quiknode.pro/wallet/votewitnessaccount", requestOptions)24.entonces((respuesta) => respuesta.texto())25.entonces((resultado) => consola.log(resultado))26.captura((error) => consola.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",18encabezados: myHeaders,19cuerpo: sin procesar,20redirigir: «seguir»21};2223fetch("https://docs-demo.tron-mainnet.quiknode.pro/wallet/votewitnessaccount", requestOptions)24.entonces((respuesta) => respuesta.texto())25.entonces((resultado) => consola.log(resultado))26.captura((error) => consola.error(error));
1importar solicitudes2import json34url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/votewitnessaccount"56carga útil = json.volcados({7"owner_address": "TC7xSvcMqW7PXuZXAuzhie81g22fA45kyY",8"votes": [9{10"vote_address": "TTW663tQYJTTCtHh6DWKAfexRhPMf2DxQ1",11"vote_count": 112}13],14«visible»: Verdadero15})16encabezados = {17«aceptar»: 'application/json',18«content-type»: 'application/json'19}2021respuesta = solicitudes.solicitud(«POST», url, encabezados=encabezados, datos=carga útil)2223imprimir(respuesta.texto)24
1importar solicitudes2import json34url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/votewitnessaccount"56carga útil = json.volcados({7"owner_address": "TC7xSvcMqW7PXuZXAuzhie81g22fA45kyY",8"votes": [9{10"vote_address": "TTW663tQYJTTCtHh6DWKAfexRhPMf2DxQ1",11"vote_count": 112}13],14«visible»: Verdadero15})16encabezados = {17«aceptar»: 'application/json',18«content-type»: 'application/json'19}2021respuesta = solicitudes.solicitud(«POST», url, encabezados=encabezados, datos=carga útil)2223imprimir(respuesta.texto)24
1requiere «uri»2require «json»3requiere «net/http»45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/votewitnessaccount")67https = Net::HTTP.nuevo(url.host, url.puerto)8https.use_ssl = true910solicitud = Neto::HTTP::POST.nuevo(URL)11request["accept"] = "application/json"12request["content-type"] = "application/json"13solicitud.cuerpo = JSON.dump({14"owner_address": "TC7xSvcMqW7PXuZXAuzhie81g22fA45kyY",15"votes": [16{17"vote_address": "TTW663tQYJTTCtHh6DWKAfexRhPMf2DxQ1",18"vote_count": 119}20],21"visible": true22})2324respuesta = https.solicitud(solicitud)25muestra la respuesta.read_body26
1requiere «uri»2require «json»3requiere «net/http»45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/votewitnessaccount")67https = Net::HTTP.nuevo(url.host, url.puerto)8https.use_ssl = true910solicitud = Neto::HTTP::POST.nuevo(URL)11request["accept"] = "application/json"12request["content-type"] = "application/json"13solicitud.cuerpo = JSON.dump({14"owner_address": "TC7xSvcMqW7PXuZXAuzhie81g22fA45kyY",15"votes": [16{17"vote_address": "TTW663tQYJTTCtHh6DWKAfexRhPMf2DxQ1",18"vote_count": 119}20],21"visible": true22})2324respuesta = https.solicitud(solicitud)25muestra la respuesta.read_body26
¿Aún no tienes una cuenta?
Crea tuendpoint Quicknode endpoint segundos y empieza a desarrollar
Empieza gratis