/wallet/getcandelegatedmaxsize REST API Endpoint
身体パラメータ
owner_address
文字列
必須
読み込み中...
タイプ
整数
必須
読み込み中...
表示されている
ブール値
読み込み中...
返品
max_size
読み込み中...
リクエスト
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/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/wallet/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/wallet/getcandelegatedmaxsize', {2メソッド: 'POST',3headers: {4「承諾」: 'application/json',5「Content-Type」: 'application/json'6},7body: JSON.stringify({8owner_address: 'OWNER_ADDRESS',9type: 0,10visible: true11})12})13.その後(レスポンス => レスポンス.json())14.then(data => {15// Handle the response data16コンソール.log(データ);17})18.catchcatch(エラー => {19// Handle any errors20コンソール.エラー(エラー);21});22
1fetch('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcandelegatedmaxsize', {2メソッド: 'POST',3headers: {4「承諾」: 'application/json',5「Content-Type」: 'application/json'6},7body: JSON.stringify({8owner_address: 'OWNER_ADDRESS',9type: 0,10visible: true11})12})13.その後(レスポンス => レスポンス.json())14.then(data => {15// Handle the response data16コンソール.log(データ);17})18.catchcatch(エラー => {19// Handle any errors20コンソール.エラー(エラー);21});22
1import リクエスト2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/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))16if response.status_code == 200:17result = response.json()18# Handle the response data19print(result)20else:21# Handle any errors22print('Request failed with status code', response.status_code)23print(response.text)24
1import リクエスト2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/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))16if response.status_code == 200:17result = response.json()18# Handle the response data19print(result)20else:21# Handle any errors22print('Request failed with status code', response.status_code)23print(response.text)24
1require 'net/http'2require 'json'3require 'uri'45url = URI.parse('https://docs-demo.tron-mainnet.quiknode.pro/wallet/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.リクエスト(リクエスト)1213if response.code.to_i == 20014result = JSON.parse(response.body)15# Handle the response data16puts result17else18# Handle any errors19puts 'Request failed with status code ' + response.code20puts response.body21終わり22
1require 'net/http'2require 'json'3require 'uri'45url = URI.parse('https://docs-demo.tron-mainnet.quiknode.pro/wallet/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.リクエスト(リクエスト)1213if response.code.to_i == 20014result = JSON.parse(response.body)15# Handle the response data16puts result17else18# Handle any errors19puts 'Request failed with status code ' + response.code20puts response.body21終わり22