/walletsolidity/getcandelegatedmaxsize REST API Endpoint
身体パラメータ
所有者の住所
文字列
必須
読み込み中...
タイプ
整数
必須
読み込み中...
表示されている
ブール値
読み込み中...
返します
max_size
読み込み中...
リクエスト
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getcandelegatedmaxsize \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "OWNER_ADDRESS",7"type": 0,8"visible": true9}10'
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getcandelegatedmaxsize \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "OWNER_ADDRESS",7"type": 0,8"visible": true9}10'
1fetch('https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getcandelegatedmaxsize', {2メソッド: 'POST',3headers: {4「承諾」: 'application/json',5「Content-Type」: 'application/json'6},7body: JSON.stringify({8所有者の住所: 'OWNER_ADDRESS',9type: 0,10表示: true11})12})13.その後(レスポンス => レスポンス.json())14.その後(データ => {15// Handle the response data16コンソール.log(データ);17})18.catch(エラー => {19// Handle any errors20コンソール.エラー(エラー);21});22
1fetch('https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getcandelegatedmaxsize', {2メソッド: 'POST',3headers: {4「承諾」: 'application/json',5「Content-Type」: 'application/json'6},7body: JSON.stringify({8所有者の住所: 'OWNER_ADDRESS',9type: 0,10表示: true11})12})13.その後(レスポンス => レスポンス.json())14.その後(データ => {15// Handle the response data16コンソール.log(データ);17})18.catch(エラー => {19// Handle any errors20コンソール.エラー(エラー);21});22
1import リクエスト2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getcandelegatedmaxsize'5ヘッダー = {6「承諾」: 'application/json',7「Content-Type」: 'application/json'8}9データ = {10'owner_address': 'OWNER_ADDRESS',11'type': 0,12「visible」: True13}1415回答 = リクエスト.POST(url, ヘッダー=headers, データ=json.dumps(data))16もし レスポンス.ステータスコード == 200:17結果 = レスポンス.json()18# レスポンスデータの処理19印刷(結果)20else:21# エラーへの対応22印刷('ステータスコードによりリクエストが失敗しました', レスポンス.ステータスコード)23印刷(レスポンス.text)24
1import リクエスト2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getcandelegatedmaxsize'5ヘッダー = {6「承諾」: 'application/json',7「Content-Type」: 'application/json'8}9データ = {10'owner_address': 'OWNER_ADDRESS',11'type': 0,12「visible」: True13}1415回答 = リクエスト.POST(url, ヘッダー=headers, データ=json.dumps(data))16もし レスポンス.ステータスコード == 200:17結果 = レスポンス.json()18# レスポンスデータの処理19印刷(結果)20else:21# エラーへの対応22印刷('ステータスコードによりリクエストが失敗しました', レスポンス.ステータスコード)23印刷(レスポンス.text)24
1require 'net/http'2require 'json'3require 'uri'45url = URI.parse('https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getcandelegatedmaxsize')6http = ネット::HTTP.new(url.ホスト, url.ポート)78request = Net::HTTP::Post.new(url.path, { 'Content-Type' => 'application/json', 'Accept' => 'application/json' })9request.body = { owner_address: 'OWNER_ADDRESS', type: 0, visible: true }.to_json1011回答 = http.リクエスト(リクエスト)1213もし レスポンス.コード.to_i == 20014結果 = JSON.parse(response.body)15# レスポンスデータの処理16結果を格納する17else18# エラーへの対応19puts 'ステータスコード ' でリクエストが失敗しました' + レスポンス.コード20レスポンスを格納する。body21終わり22
1require 'net/http'2require 'json'3require 'uri'45url = URI.parse('https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getcandelegatedmaxsize')6http = ネット::HTTP.new(url.ホスト, url.ポート)78request = Net::HTTP::Post.new(url.path, { 'Content-Type' => 'application/json', 'Accept' => 'application/json' })9request.body = { owner_address: 'OWNER_ADDRESS', type: 0, visible: true }.to_json1011回答 = http.リクエスト(リクエスト)1213もし レスポンス.コード.to_i == 20014結果 = JSON.parse(response.body)15# レスポンスデータの処理16結果を格納する17else18# エラーへの対応19puts 'ステータスコード ' でリクエストが失敗しました' + レスポンス.コード20レスポンスを格納する。body21終わり22