/walletsolidity/getdelegatedresourceaccountindex REST API Endpoint
身體參數
值
字串
必填
載入中...
visible
布林值
載入中...
退貨
帳戶
載入中...
fromAccounts
載入中...
toAccounts
載入中...
請求
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindex \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"value": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",7"visible": true8}9'
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindex \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"value": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",7"visible": true8}9'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindex';2const 標頭 = {3「接受」: 'application/json',4「Content-Type」: 'application/json'5};67const data = {8value: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',9visible: true10};1112取得(url, {13方法: 'POST',14標題: 標頭:,15body: JSON.stringify(data)16})17.接著(回應 => response.json())18.接著(結果 => {19控制台.日誌(結果);20})21.catchcatch(錯誤 => {22控制台.錯誤(錯誤);23});24
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindex';2const 標頭 = {3「接受」: 'application/json',4「Content-Type」: 'application/json'5};67const data = {8value: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',9visible: true10};1112取得(url, {13方法: 'POST',14標題: 標頭:,15body: JSON.stringify(data)16})17.接著(回應 => response.json())18.接著(結果 => {19控制台.日誌(結果);20})21.catchcatch(錯誤 => {22控制台.錯誤(錯誤);23});24
1匯入 請求23url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindex'45標題 = {6「接受」: 'application/json',7'content-type': 'application/json'8}910資料 = {11"value": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",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
1匯入 請求23url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindex'45標題 = {6「接受」: 'application/json',7'content-type': 'application/json'8}910資料 = {11"value": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",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
1需要 'net/http'2require 'json'3需要 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindex')67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910標題 = {11'Accept' => 'application/json',12'Content-Type' => 'application/json'13}1415資料 = {16value: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',17visible: true18}1920請求 = 淨::HTTP::POST.new(網址)21請求。正文 = data.to_json22headers.each { |key, value| request[key] = value }2324回應 = http.請求(請求)2526if response.code.to_i == 20027result = JSON.parse(response.body)28puts result29else30puts "Request failed with status code: #{response.code}"31結束32
1需要 'net/http'2require 'json'3需要 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresourceaccountindex')67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910標題 = {11'Accept' => 'application/json',12'Content-Type' => 'application/json'13}1415資料 = {16value: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',17visible: true18}1920請求 = 淨::HTTP::POST.new(網址)21請求。正文 = data.to_json22headers.each { |key, value| request[key] = value }2324回應 = http.請求(請求)2526if response.code.to_i == 20027result = JSON.parse(response.body)28puts result29else30puts "Request failed with status code: #{response.code}"31結束32