/wallet/withdrawexpireunfreeze REST API Endpoint
Please note that Stake 2.0 supports multiple partial unstakes. Through this API, all unstaked funds that have passed the N-day lock-up period will be withdrawn at one time.
身體參數
owner_address
字串
必填
載入中...
permission_id
整數
載入中...
visible
布林值
載入中...
退貨
visible
載入中...
txid
載入中...
raw_data
載入中...
合約
載入中...
parameter
載入中...
值
載入中...
owner_address
載入中...
type_url
載入中...
類型
載入中...
ref_block_bytes
載入中...
ref_block_hash
載入中...
expiration
載入中...
時間戳記
載入中...
raw_data_hex
載入中...
請求
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/withdrawexpireunfreeze \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "OWNER_ADDRESS",7"visible": true8}9'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/withdrawexpireunfreeze \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "OWNER_ADDRESS",7"visible": true8}9'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/withdrawexpireunfreeze';23取得(url, {4方法: 'POST',5headers: {6「接受」: 'application/json',7「Content-Type」: 'application/json'8},9body: JSON.stringify({10owner_address: 'OWNER_ADDRESS',11visible: true12})13})14.接著(回應 => response.json())15.then(data => {16// Handle the response data17console.log(data);18})19.catchcatch(錯誤 => {20// Handle any errors21控制台.錯誤(錯誤);22});23
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/withdrawexpireunfreeze';23取得(url, {4方法: 'POST',5headers: {6「接受」: 'application/json',7「Content-Type」: 'application/json'8},9body: JSON.stringify({10owner_address: 'OWNER_ADDRESS',11visible: true12})13})14.接著(回應 => response.json())15.then(data => {16// Handle the response data17console.log(data);18})19.catchcatch(錯誤 => {20// Handle any errors21控制台.錯誤(錯誤);22});23
1匯入 請求2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/withdrawexpireunfreeze'56標題 = {7「接受」: 'application/json',8'content-type': 'application/json'9}1011資料 = {12'owner_address': 'OWNER_ADDRESS',13'visible': True14}1516response = requests.post(url, json=data, headers=headers)1718if response.status_code == 200:19print(response.json())20else:21print("Request failed with status code:", response.status_code)22
1匯入 請求2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/withdrawexpireunfreeze'56標題 = {7「接受」: 'application/json',8'content-type': 'application/json'9}1011資料 = {12'owner_address': 'OWNER_ADDRESS',13'visible': True14}1516response = requests.post(url, json=data, headers=headers)1718if response.status_code == 200:19print(response.json())20else:21print("Request failed with status code:", response.status_code)22
1需要 'net/http'2require 'json'3需要 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/withdrawexpireunfreeze')67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910標題 = {11'Accept' => 'application/json',12'Content-Type' => 'application/json'13}1415資料 = {16owner_address: 'OWNER_ADDRESS',17visible: true18}1920請求 = 淨::HTTP::POST.new(網址)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
1需要 'net/http'2require 'json'3需要 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/withdrawexpireunfreeze')67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910標題 = {11'Accept' => 'application/json',12'Content-Type' => 'application/json'13}1415資料 = {16owner_address: 'OWNER_ADDRESS',17visible: true18}1920請求 = 淨::HTTP::POST.new(網址)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