/walletsolidity/getdelegatedresourceaccountindexv2 REST API Endpoint
Parâmetros corporais
valor
cadeia de caracteres
OBRIGATÓRIO
A carregar...
visible
booleano
A carregar...
Devoluções
conta
A carregar...
fromAccounts
A carregar...
toAccounts
A carregar...
Pedido
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindexv2 \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"value": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",7"visible": true8}9'
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindexv2 \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"value": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",7"visible": true8}9'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindexv2';2const cabeçalhos = {3'Accept': 'application/json',4'Content-Type': 'application/json'5};67const data = {8value: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',9visible: true10};1112buscar(url, {13método: 'POST',14cabeçalhos: cabeçalhos,15body: JSON.stringify(data)16})17.então(resposta => resposta.json())18.então(resultado => {19consola.registo(resultado);20})21.catch(erro => {22consola.erro(erro);23});24
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindexv2';2const cabeçalhos = {3'Accept': 'application/json',4'Content-Type': 'application/json'5};67const data = {8value: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',9visible: true10};1112buscar(url, {13método: 'POST',14cabeçalhos: cabeçalhos,15body: JSON.stringify(data)16})17.então(resposta => resposta.json())18.então(resultado => {19consola.registo(resultado);20})21.catch(erro => {22consola.erro(erro);23});24
1importar pedidos23url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindexv2'45cabeçalhos = {6«aceitar»: 'application/json',7'content-type': 'application/json'8}910dados = {11"value": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",12"visible": True13}1415response = requests.post(url, json=data, headers=headers)1617if response.status_code == 200:18print(response.json())19else:20print("Request failed with status code:", response.status_code)21
1importar pedidos23url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindexv2'45cabeçalhos = {6«aceitar»: 'application/json',7'content-type': 'application/json'8}910dados = {11"value": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",12"visible": True13}1415response = requests.post(url, json=data, headers=headers)1617if response.status_code == 200:18print(response.json())19else:20print("Request failed with status code:", response.status_code)21
1exigir 'net/http'2require 'json'3exigir 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindexv2')67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910cabeçalhos = {11'Accept' => 'application/json',12'Content-Type' => 'application/json'13}1415dados = {16value: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',17visible: true18}1920pedido = Líquido::HTTP::POST.novo(url)21pedido.corpo = dados.to_json22headers.each { |key, value| request[key] = value }2324resposta = http.pedido(pedido)2526if response.code.to_i == 20027result = JSON.parse(response.body)28puts result29else30puts "Request failed with status code: #{response.code}"31fim32
1exigir 'net/http'2require 'json'3exigir 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindexv2')67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910cabeçalhos = {11'Accept' => 'application/json',12'Content-Type' => 'application/json'13}1415dados = {16value: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',17visible: true18}1920pedido = Líquido::HTTP::POST.novo(url)21pedido.corpo = dados.to_json22headers.each { |key, value| request[key] = value }2324resposta = http.pedido(pedido)2526if response.code.to_i == 20027result = JSON.parse(response.body)28puts result29else30puts "Request failed with status code: #{response.code}"31fim32
Ainda não tem uma conta?
Crie o seu ponto de extremidade Quicknode em segundos e comece a desenvolver
Comece gratuitamente