/walletsolidity/getdelegatedresource REST API Endpoint
身体パラメータ
fromAddress
文字列
必須
読み込み中...
toAddress
文字列
必須
読み込み中...
表示されている
ブール値
読み込み中...
返します
出典
読み込み中...
~へ
読み込み中...
frozen_balance_for_bandwidth
読み込み中...
frozen_balance_for_energy
読み込み中...
expire_time_for_bandwidth
読み込み中...
expire_time_for_energy
読み込み中...
リクエスト
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresource \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"fromAddress": "FROM_ADDRESS",7"toAddress": "TO_ADDRESS",8"visible": true9}10'11
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresource \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"fromAddress": "FROM_ADDRESS",7"toAddress": "TO_ADDRESS",8"visible": true9}10'11
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresource';2const ヘッダー = {3「承諾」: 'application/json',4「Content-Type」: 'application/json'5};67const データ = {8fromAddress: 'FROM_ADDRESS',9toAddress: 'TO_ADDRESS',10表示: true11};1213フェッチ(url, {14メソッド: 'POST',15ヘッダー: ヘッダー:,16本文: JSON.stringify(data)17})18.その後(レスポンス => レスポンス.json())19.その後(結果 => {20コンソール.log(結果);21})22.catch(エラー => {23コンソール.エラー(エラー);24});25
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresource';2const ヘッダー = {3「承諾」: 'application/json',4「Content-Type」: 'application/json'5};67const データ = {8fromAddress: 'FROM_ADDRESS',9toAddress: 'TO_ADDRESS',10表示: true11};1213フェッチ(url, {14メソッド: 'POST',15ヘッダー: ヘッダー:,16本文: JSON.stringify(data)17})18.その後(レスポンス => レスポンス.json())19.その後(結果 => {20コンソール.log(結果);21})22.catch(エラー => {23コンソール.エラー(エラー);24});25
1import リクエスト23url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresource'45ヘッダー = {6「accept」: 'application/json',7「content-type」: 'application/json'8}910データ = {11"fromAddress": "FROM_ADDRESS",12"toAddress": "TO_ADDRESS",13「visible」: True14}1516回答 = リクエスト.POST(url, json=data, ヘッダー=ヘッダー)1718もし レスポンス.ステータスコード == 200:19印刷(レスポンス.json())20else:21印刷("ステータスコード: でリクエストが失敗しました:", レスポンス.ステータスコード)22
1import リクエスト23url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresource'45ヘッダー = {6「accept」: 'application/json',7「content-type」: 'application/json'8}910データ = {11"fromAddress": "FROM_ADDRESS",12"toAddress": "TO_ADDRESS",13「visible」: True14}1516回答 = リクエスト.POST(url, json=data, ヘッダー=ヘッダー)1718もし レスポンス.ステータスコード == 200:19印刷(レスポンス.json())20else:21印刷("ステータスコード: でリクエストが失敗しました:", レスポンス.ステータスコード)22
1require 'net/http'2require 'json'3require 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresource')67http = ネット::HTTP.new(url.ホスト, url.ポート)8http.use_ssl = true910ヘッダー = {11「承諾」 => 'application/json',12「Content-Type」 => 'application/json'13}1415データ = {16fromAddress: 'FROM_ADDRESS',17toAddress: 'TO_ADDRESS',18表示: true19}2021リクエスト = ネット::HTTP::POST.new(URL)22リクエスト.本文 = data.to_json23ヘッダー.各 { |key, 値| リクエスト[キー] = 値 }2425回答 = http.リクエスト(リクエスト)2627もし レスポンス.コード.to_i == 20028結果 = JSON.parse(response.body)29結果を格納する30else31puts "Request failed with status code: #{response.code}"32終わり33
1require 'net/http'2require 'json'3require 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getdelegatedresource')67http = ネット::HTTP.new(url.ホスト, url.ポート)8http.use_ssl = true910ヘッダー = {11「承諾」 => 'application/json',12「Content-Type」 => 'application/json'13}1415データ = {16fromAddress: 'FROM_ADDRESS',17toAddress: 'TO_ADDRESS',18表示: true19}2021リクエスト = ネット::HTTP::POST.new(URL)22リクエスト.本文 = data.to_json23ヘッダー.各 { |key, 値| リクエスト[キー] = 値 }2425回答 = http.リクエスト(リクエスト)2627もし レスポンス.コード.to_i == 20028結果 = JSON.parse(response.body)29結果を格納する30else31puts "Request failed with status code: #{response.code}"32終わり33