/wallet/getdelegatedresource REST API Endpoint
Lichaamsparameters
van: Adres
tekenreeks
VERPLICHT
Bezig met laden...
toAddress
tekenreeks
VERPLICHT
Bezig met laden...
visible
booleaanse waarde
Bezig met laden...
Retourzendingen
uit
Bezig met laden...
naar
Bezig met laden...
frozen_balance_for_bandwidth
Bezig met laden...
frozen_balance_for_energy
Bezig met laden...
expire_time_for_bandwidth
Bezig met laden...
expire_time_for_energy
Bezig met laden...
Verzoek
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getdelegatedresource \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"fromAddress": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",7"toAddress": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",8"visible": true9}10'11
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getdelegatedresource \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"fromAddress": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",7"toAddress": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",8"visible": true9}10'11
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getdelegatedresource';2const headers = {3'Accept': 'application/json',4'Content-Type': 'application/json'5};67const data = {8fromAddress: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',9toAddress: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',10visible: true11};1213ophalen(url, {14methode: 'POST',15kopteksten: kopteksten,16body: JSON.stringify(data)17})18.dan(reactie => response.json())19.dan(resultaat => {20console.log(resultaat);21})22.catch(fout => {23console.fout(fout);24});25
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getdelegatedresource';2const headers = {3'Accept': 'application/json',4'Content-Type': 'application/json'5};67const data = {8fromAddress: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',9toAddress: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',10visible: true11};1213ophalen(url, {14methode: 'POST',15kopteksten: kopteksten,16body: JSON.stringify(data)17})18.dan(reactie => response.json())19.dan(resultaat => {20console.log(resultaat);21})22.catch(fout => {23console.fout(fout);24});25
1import verzoeken23url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getdelegatedresource'45kopteksten = {6'accepteren': 'application/json',7'content-type': 'application/json'8}910gegevens = {11"fromAddress": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",12"toAddress": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",13"visible": True14}1516response = requests.post(url, json=data, headers=headers)1718if response.status_code == 200:19print(response.json())20else:21print("Request failed with status code:", response.status_code)22
1import verzoeken23url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getdelegatedresource'45kopteksten = {6'accepteren': 'application/json',7'content-type': 'application/json'8}910gegevens = {11"fromAddress": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",12"toAddress": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",13"visible": True14}1516response = requests.post(url, json=data, headers=headers)1718if response.status_code == 200:19print(response.json())20else:21print("Request failed with status code:", response.status_code)22
1vereisen 'net/http'2require 'json'3vereisen 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getdelegatedresource')67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910kopteksten = {11'Accept' => 'application/json',12'Content-Type' => 'application/json'13}1415gegevens = {16fromAddress: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',17toAddress: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',18visible: true19}2021verzoek = Netto::HTTP::POST.nieuw(url)22verzoek.tekst = gegevens.to_json23headers.each { |key, value| request[key] = value }2425antwoord = http.verzoek(verzoek)2627if response.code.to_i == 20028result = JSON.parse(response.body)29puts result30else31puts "Request failed with status code: #{response.code}"32einde33
1vereisen 'net/http'2require 'json'3vereisen 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getdelegatedresource')67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910kopteksten = {11'Accept' => 'application/json',12'Content-Type' => 'application/json'13}1415gegevens = {16fromAddress: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',17toAddress: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',18visible: true19}2021verzoek = Netto::HTTP::POST.nieuw(url)22verzoek.tekst = gegevens.to_json23headers.each { |key, value| request[key] = value }2425antwoord = http.verzoek(verzoek)2627if response.code.to_i == 20028result = JSON.parse(response.body)29puts result30else31puts "Request failed with status code: #{response.code}"32einde33
Heb je nog geen account?
Maak binnen enkele seconden je Quicknode-eindpunt aan en ga aan de slag
Ga gratis aan de slag