/wallet/getcontractinfo REST API Endpoint
身體參數
值
字串
必填
載入中...
visible
布林值
載入中...
退貨
runtimecode
載入中...
smart_contract
載入中...
bytecode
載入中...
名稱
載入中...
origin_address
載入中...
abi
載入中...
entrys
載入中...
stateMutability
載入中...
類型
載入中...
名稱
載入中...
constant
載入中...
輸入
載入中...
indexed
載入中...
名稱
載入中...
類型
載入中...
輸出
載入中...
類型
載入中...
origin_energy_limit
載入中...
contract_address
載入中...
code_hash
載入中...
contract_state
載入中...
update_cycle
載入中...
energy_usage
載入中...
energy_factor
載入中...
請求
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcontractinfo \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"value": "TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8",7"visible": true8}9'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcontractinfo \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"value": "TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8",7"visible": true8}9'
1fetch('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcontractinfo', {2方法: 'POST',3headers: {4「接受」: 'application/json',5「Content-Type」: 'application/json'6},7body: JSON.stringify({8value: 'TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8',9visible: true10})11})12.接著(回應 => response.json())13.then(data => {14// Handle the response data here15console.log(data);16})17.catchcatch(錯誤 => {18// Handle any errors here19控制台.錯誤(錯誤);20});21
1fetch('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcontractinfo', {2方法: 'POST',3headers: {4「接受」: 'application/json',5「Content-Type」: 'application/json'6},7body: JSON.stringify({8value: 'TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8',9visible: true10})11})12.接著(回應 => response.json())13.then(data => {14// Handle the response data here15console.log(data);16})17.catchcatch(錯誤 => {18// Handle any errors here19控制台.錯誤(錯誤);20});21
1匯入 請求2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcontractinfo'5標題 = {6「接受」: 'application/json',7「Content-Type」: 'application/json'8}9資料 = {10'value': 'TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8',11'visible': True12}1314response = requests.post(url, headers=headers, json=data)1516if response.status_code == 200:17data = response.json()18# Handle the response data here19print(data)20else:21# Handle the error here22print(f'Error: {response.status_code} {response.reason}')23
1匯入 請求2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcontractinfo'5標題 = {6「接受」: 'application/json',7「Content-Type」: 'application/json'8}9資料 = {10'value': 'TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8',11'visible': True12}1314response = requests.post(url, headers=headers, json=data)1516if response.status_code == 200:17data = response.json()18# Handle the response data here19print(data)20else:21# Handle the error here22print(f'Error: {response.status_code} {response.reason}')23
1需要 'net/http'2require 'json'34url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcontractinfo')5http = Net::HTTP.new(url.host, url.port)6http.use_ssl = true78請求 = 淨::HTTP::POST.new(網址)9request['Accept'] = 'application/json'10request['Content-Type'] = 'application/json'11request.body = {12value: 'TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8',13visible: true14}.to_json1516回應 = http.請求(請求)1718if response.code.to_i == 20019data = JSON.parse(response.body)20# Handle the response data here21puts data22else23# Handle the error here24puts "Error: #{response.code} #{response.message}"25結束26
1需要 'net/http'2require 'json'34url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcontractinfo')5http = Net::HTTP.new(url.host, url.port)6http.use_ssl = true78請求 = 淨::HTTP::POST.new(網址)9request['Accept'] = 'application/json'10request['Content-Type'] = 'application/json'11request.body = {12value: 'TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8',13visible: true14}.to_json1516回應 = http.請求(請求)1718if response.code.to_i == 20019data = JSON.parse(response.body)20# Handle the response data here21puts data22else23# Handle the error here24puts "Error: #{response.code} #{response.message}"25結束26