/wallet/freezebalancev2 REST API Endpoint
身體參數
owner_address
字串
必填
載入中...
frozen_balance
字串
必填
載入中...
resource
布林值
必填
載入中...
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/freezebalancev2 \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "OWNER_ADDRESS",7"frozen_balance": 10000000,8"resource": "ENERGY",9"visible": true10}11'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/freezebalancev2 \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "OWNER_ADDRESS",7"frozen_balance": 10000000,8"resource": "ENERGY",9"visible": true10}11'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/freezebalancev2';23const 標頭 = {4「接受」: 'application/json',5「Content-Type」: 'application/json'6};78const data = {9owner_address: 'OWNER_ADDRESS',10frozen_balance: 10000000,11resource: 'ENERGY',12visible: true13};1415取得(url, {16方法: 'POST',17標題: 標頭:,18body: JSON.stringify(data)19})20.接著(回應 => response.json())21.接著(結果 => {22控制台.日誌(結果);23})24.catchcatch(錯誤 => {25控制台.錯誤(錯誤);26});2728
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/freezebalancev2';23const 標頭 = {4「接受」: 'application/json',5「Content-Type」: 'application/json'6};78const data = {9owner_address: 'OWNER_ADDRESS',10frozen_balance: 10000000,11resource: 'ENERGY',12visible: true13};1415取得(url, {16方法: 'POST',17標題: 標頭:,18body: JSON.stringify(data)19})20.接著(回應 => response.json())21.接著(結果 => {22控制台.日誌(結果);23})24.catchcatch(錯誤 => {25控制台.錯誤(錯誤);26});2728
1匯入 請求2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/freezebalancev2'56標題 = {7「接受」: 'application/json',8'content-type': 'application/json'9}1011資料 = {12"owner_address": "OWNER_ADDRESS",13"frozen_balance": 10000000,14"resource": "ENERGY",15"visible": True16}1718response = requests.post(url, json=data, headers=headers)1920if response.status_code == 200:21print(response.json())22else:23print("Request failed with status code:", response.status_code)24
1匯入 請求2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/freezebalancev2'56標題 = {7「接受」: 'application/json',8'content-type': 'application/json'9}1011資料 = {12"owner_address": "OWNER_ADDRESS",13"frozen_balance": 10000000,14"resource": "ENERGY",15"visible": True16}1718response = requests.post(url, json=data, headers=headers)1920if response.status_code == 200:21print(response.json())22else:23print("Request failed with status code:", response.status_code)24
1需要 'net/http'2require 'json'34uri = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/freezebalancev2')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: 10000000,17resource: 'ENERGY',18visible: true19}2021請求 = 淨::HTTP::POST.new(網址)22請求。正文 = data.to_json23headers.each { |key, value| request[key] = value }2425回應 = http.請求(請求)2627if response.code.to_i == 20028result = JSON.parse(response.body)29puts result30else31puts "Request failed with status code: #{response.code}"32結束33
1需要 'net/http'2require 'json'34uri = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/freezebalancev2')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: 10000000,17resource: 'ENERGY',18visible: true19}2021請求 = 淨::HTTP::POST.new(網址)22請求。正文 = data.to_json23headers.each { |key, value| request[key] = value }2425回應 = http.請求(請求)2627if response.code.to_i == 20028result = JSON.parse(response.body)29puts result30else31puts "Request failed with status code: #{response.code}"32結束33