/wallet/getdelegatedresourceaccountindex REST API Endpoint
身体パラメータ
値
文字列
必須
読み込み中...
表示されている
ブール値
読み込み中...
返品
アカウント
読み込み中...
fromAccounts
読み込み中...
toAccounts
読み込み中...
リクエスト
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/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/wallet/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/wallet/getdelegatedresourceaccountindex';2const ヘッダー = {3「承諾」: 'application/json',4「Content-Type」: 'application/json'5};67const data = {8value: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',9visible: true10};1112fetch(url, {13メソッド: 'POST',14ヘッダー: ヘッダー:,15body: JSON.stringify(data)16})17.その後(レスポンス => レスポンス.json())18.その後(結果 => {19コンソール.log(結果);20})21.catchcatch(エラー => {22コンソール.エラー(エラー);23});24
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getdelegatedresourceaccountindex';2const ヘッダー = {3「承諾」: 'application/json',4「Content-Type」: 'application/json'5};67const data = {8value: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',9visible: true10};1112fetch(url, {13メソッド: 'POST',14ヘッダー: ヘッダー:,15body: JSON.stringify(data)16})17.その後(レスポンス => レスポンス.json())18.その後(結果 => {19コンソール.log(結果);20})21.catchcatch(エラー => {22コンソール.エラー(エラー);23});24
1import リクエスト23url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getdelegatedresourceaccountindex'45ヘッダー = {6「accept」: '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
1import リクエスト23url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getdelegatedresourceaccountindex'45ヘッダー = {6「accept」: '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
1require 'net/http'2require 'json'3require 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getdelegatedresourceaccountindex')67http = ネット::HTTP.new(url.ホスト, url.ポート)8http.use_ssl = true910ヘッダー = {11'Accept' => 'application/json',12'Content-Type' => 'application/json'13}1415データ = {16value: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',17visible: true18}1920リクエスト = ネット::HTTP::POST.new(URL)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
1require 'net/http'2require 'json'3require 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getdelegatedresourceaccountindex')67http = ネット::HTTP.new(url.ホスト, url.ポート)8http.use_ssl = true910ヘッダー = {11'Accept' => 'application/json',12'Content-Type' => 'application/json'13}1415データ = {16value: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',17visible: true18}1920リクエスト = ネット::HTTP::POST.new(URL)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