/wallet/getcanwithdrawunfreezeamount REST API Endpoint
身體參數
owner_address
字串
必填
載入中...
時間戳記
整數
必填
載入中...
visible
布林值
載入中...
退貨
金額
載入中...
請求
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcanwithdrawunfreezeamount \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "OWNER_ADDRESS",7"timestamp": 1667977444000,8"visible": true9}10'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcanwithdrawunfreezeamount \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "OWNER_ADDRESS",7"timestamp": 1667977444000,8"visible": true9}10'
1fetch('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcanwithdrawunfreezeamount', {2方法: 'POST',3headers: {4「接受」: 'application/json',5「Content-Type」: 'application/json'6},7body: JSON.stringify({8owner_address: 'OWNER_ADDRESS',9timestamp: 1667977444000,10visible: true11})12})13.接著(回應 => response.json())14.then(data => {15// Handle the response data16console.log(data);17})18.catchcatch(錯誤 => {19// Handle any errors20控制台.錯誤(錯誤);21});22
1fetch('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcanwithdrawunfreezeamount', {2方法: 'POST',3headers: {4「接受」: 'application/json',5「Content-Type」: 'application/json'6},7body: JSON.stringify({8owner_address: 'OWNER_ADDRESS',9timestamp: 1667977444000,10visible: true11})12})13.接著(回應 => response.json())14.then(data => {15// Handle the response data16console.log(data);17})18.catchcatch(錯誤 => {19// Handle any errors20控制台.錯誤(錯誤);21});22
1匯入 請求2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcanwithdrawunfreezeamount'5標題 = {6「接受」: 'application/json',7「Content-Type」: 'application/json'8}9資料 = {10'owner_address': 'OWNER_ADDRESS',11'timestamp': 1667977444000,12'visible': True13}1415回應 = 請求.POST(url, 標頭=headers, data=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
1匯入 請求2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcanwithdrawunfreezeamount'5標題 = {6「接受」: 'application/json',7「Content-Type」: 'application/json'8}9資料 = {10'owner_address': 'OWNER_ADDRESS',11'timestamp': 1667977444000,12'visible': True13}1415回應 = 請求.POST(url, 標頭=headers, data=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
1需要 'net/http'2require 'json'3需要 'uri'45url = URI.parse('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcanwithdrawunfreezeamount')6http = Net::HTTP.new(url.host, url.port)78request = Net::HTTP::Post.new(url.path, { 'Content-Type' => 'application/json', 'Accept' => 'application/json' })9request.body = { owner_address: 'OWNER_ADDRESS', timestamp: 1667977444000, 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
1需要 'net/http'2require 'json'3需要 'uri'45url = URI.parse('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcanwithdrawunfreezeamount')6http = Net::HTTP.new(url.host, url.port)78request = Net::HTTP::Post.new(url.path, { 'Content-Type' => 'application/json', 'Accept' => 'application/json' })9request.body = { owner_address: 'OWNER_ADDRESS', timestamp: 1667977444000, 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