/walletsolidity/getdelegatedresourceaccountindexv2 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/walletsolidity/getdelegatedresourceaccountindexv2 \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"value": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",
"visible": true
}
'const url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindexv2';
const headers = {
'Accept': 'application/json',
'Content-Type': 'application/json'
};
const data = {
value: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',
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/walletsolidity/getdelegatedresourceaccountindexv2'
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
data = {
"value": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",
"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/walletsolidity/getdelegatedresourceaccountindexv2')
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
headers = {
'Accept' => 'application/json',
'Content-Type' => 'application/json'
}
data = {
value: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',
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