/wallet/freezebalance REST API Endpoint
身體參數
owner_address
字串
必填
載入中...
frozen_balance
字串
必填
載入中...
frozen_duration
整數
必填
載入中...
resource
布林值
必填
載入中...
receiver_address
布林值
載入中...
permission_id
整數
載入中...
visible
布林值
載入中...
退貨
visible
載入中...
txid
載入中...
raw_data
載入中...
合約
載入中...
parameter
載入中...
值
載入中...
resource
載入中...
owner_address
載入中...
frozen_balance
載入中...
type_url
載入中...
類型
載入中...
ref_block_bytes
載入中...
ref_block_hash
載入中...
expiration
載入中...
時間戳記
載入中...
raw_data_hex
載入中...
請求
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/freezebalance \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "OWNER_ADDRESS",7"frozen_balance": 100000,8"frozen_duration": 3,9"resource": "ENERGY",10"visible": true11}12'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/freezebalance \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "OWNER_ADDRESS",7"frozen_balance": 100000,8"frozen_duration": 3,9"resource": "ENERGY",10"visible": true11}12'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/freezebalance';23const 標頭 = {4「接受」: 'application/json',5「Content-Type」: 'application/json'6};78const data = {9owner_address: 'OWNER_ADDRESS',10frozen_balance: 100000,11frozen_duration: 3,12resource: 'ENERGY',13visible: true14};1516取得(url, {17方法: 'POST',18標題: 標頭:,19body: JSON.stringify(data)20})21.接著(回應 => response.json())22.接著(結果 => {23控制台.日誌(結果);24})25.catchcatch(錯誤 => {26控制台.錯誤(錯誤);27});28
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/freezebalance';23const 標頭 = {4「接受」: 'application/json',5「Content-Type」: 'application/json'6};78const data = {9owner_address: 'OWNER_ADDRESS',10frozen_balance: 100000,11frozen_duration: 3,12resource: 'ENERGY',13visible: true14};1516取得(url, {17方法: 'POST',18標題: 標頭:,19body: JSON.stringify(data)20})21.接著(回應 => response.json())22.接著(結果 => {23控制台.日誌(結果);24})25.catchcatch(錯誤 => {26控制台.錯誤(錯誤);27});28
1匯入 請求2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/freezebalance'56標題 = {7「接受」: 'application/json',8'content-type': 'application/json'9}1011資料 = {12"owner_address": "OWNER_ADDRESS",13"frozen_balance": 100000,14"frozen_duration": 3,15"resource": "ENERGY",16"visible": True17}1819response = requests.post(url, json=data, headers=headers)2021if response.status_code == 200:22print(response.json())23else:24print("Request failed with status code:", response.status_code)25
1匯入 請求2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/freezebalance'56標題 = {7「接受」: 'application/json',8'content-type': 'application/json'9}1011資料 = {12"owner_address": "OWNER_ADDRESS",13"frozen_balance": 100000,14"frozen_duration": 3,15"resource": "ENERGY",16"visible": True17}1819response = requests.post(url, json=data, headers=headers)2021if response.status_code == 200:22print(response.json())23else:24print("Request failed with status code:", response.status_code)25
1需要 'net/http'2require 'json'34uri = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/freezebalance')56http = Net::HTTP.new(url.host, url.port)7http.use_ssl = true89標題 = {10'Accept' => 'application/json',11'Content-Type' => 'application/json'12}1314資料 = {15owner_address: 'OWNER_ADDRESS',16frozen_balance: 100000,17frozen_duration: 3,18resource: 'ENERGY',19visible: true20}2122請求 = 淨::HTTP::POST.new(網址)23請求。正文 = data.to_json24headers.each { |key, value| request[key] = value }2526回應 = http.請求(請求)2728if response.code.to_i == 20029result = JSON.parse(response.body)30puts result31else32puts "Request failed with status code: #{response.code}"33結束34
1需要 'net/http'2require 'json'34uri = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/freezebalance')56http = Net::HTTP.new(url.host, url.port)7http.use_ssl = true89標題 = {10'Accept' => 'application/json',11'Content-Type' => 'application/json'12}1314資料 = {15owner_address: 'OWNER_ADDRESS',16frozen_balance: 100000,17frozen_duration: 3,18resource: 'ENERGY',19visible: true20}2122請求 = 淨::HTTP::POST.new(網址)23請求。正文 = data.to_json24headers.each { |key, value| request[key] = value }2526回應 = http.請求(請求)2728if response.code.to_i == 20029result = JSON.parse(response.body)30puts result31else32puts "Request failed with status code: #{response.code}"33結束34