/wallet/freezebalancev2 REST API Endpoint
신체 매개변수
owner_address
문자열
필수
로딩 중...
frozen_balance
문자열
필수
로딩 중...
resource
부울
필수
로딩 중...
permission_id
정수
로딩 중...
visible
부울
로딩 중...
반품
visible
로딩 중...
txid
로딩 중...
raw_data
로딩 중...
contract
로딩 중...
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'Accept': '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.그런 다음(응답 => 응답.json())21.그런 다음(결과 => {22콘솔.log(결과);23})24.catchcatch (error => {25콘솔.오류(오류);26});2728
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/freezebalancev2';23const 헤더 = {4'Accept': '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.그런 다음(응답 => 응답.json())21.그런 다음(결과 => {22콘솔.log(결과);23})24.catchcatch (error => {25콘솔.오류(오류);26});2728
1import 요청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
1import 요청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
1require '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.새(URL)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
1require '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.새(URL)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