/wallet/getdelegatedresourceaccountindex REST API Endpoint
Body Parameters
value
string
REQUIRED
Loading...
visible
boolean
Loading...
Returns
account
Loading...
fromAccounts
Loading...
toAccounts
Loading...
Request
curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getdelegatedresourceaccountindex \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "value": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g", "visible": true } '
const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getdelegatedresourceaccountindex'; const headers = { 'Accept': 'application/json', 'Content-Type': 'application/json' }; const data = { value: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g', visible: true }; fetch(url, { method: 'POST', headers: headers, body: JSON.stringify(data) }) .then(response => response.json()) .then(result => { console.log(result); }) .catch(error => { console.error(error); });
import requests url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getdelegatedresourceaccountindex' headers = { 'accept': 'application/json', 'content-type': 'application/json' } data = { "value": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g", "visible": True } response = requests.post(url, json=data, headers=headers) if response.status_code == 200: print(response.json()) else: print("Request failed with status code:", response.status_code)
require 'net/http' require 'json' require 'uri' url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getdelegatedresourceaccountindex') http = Net::HTTP.new(url.host, url.port) http.use_ssl = true headers = { 'Accept' => 'application/json', 'Content-Type' => 'application/json' } data = { value: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g', visible: true } request = Net::HTTP::Post.new(url) request.body = data.to_json headers.each { |key, value| request[key] = value } response = http.request(request) if response.code.to_i == 200 result = JSON.parse(response.body) puts result else puts "Request failed with status code: #{response.code}" end
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free