/wallet/getcontractinfo REST API Endpoint
신체 측정값
값
문자열
필수
로딩 중...
보이는
부울
로딩 중...
반품
runtimecode
로딩 중...
smart_contract
로딩 중...
bytecode
로딩 중...
이름
로딩 중...
origin_address
로딩 중...
abi
로딩 중...
entrys
로딩 중...
stateMutability
로딩 중...
유형
로딩 중...
이름
로딩 중...
constant
로딩 중...
inputs
로딩 중...
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--헤더 'content-type: application/json' \4--데이터 '5{6"value": "TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8",7"visible": true8}9'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcontractinfo \2--header 'accept: application/json' \3--헤더 'content-type: application/json' \4--데이터 '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.그런 다음(응답 => 응답.json())13.그런 다음(데이터 => {14// Handle the response data here15콘솔.log(데이터);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.그런 다음(응답 => 응답.json())13.그런 다음(데이터 => {14// Handle the response data here15콘솔.log(데이터);16})17.catchcatch (오류 => {18// Handle any errors here19콘솔.오류(오류);20});21
1import 요청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}1314답변 = 요청.post(url, 헤더=헤더, json=데이터)1516만약 응답.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
1import 요청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}1314답변 = 요청.post(url, 헤더=헤더, json=데이터)1516만약 응답.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
1require 'net/http'2require 'json'34url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcontractinfo')5http = Net::HTTP.new(url.호스트, url.포트)6http.use_ssl = true78요청 = 순::HTTP::POST.새(URL)9request['Accept'] = 'application/json'10request['Content-Type'] = 'application/json'11request.body = {12value: 'TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8',13표시됨: true14}.to_json1516답변 = http.요청(요청)1718만약 응답.코드.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
1require 'net/http'2require 'json'34url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcontractinfo')5http = Net::HTTP.new(url.호스트, url.포트)6http.use_ssl = true78요청 = 순::HTTP::POST.새(URL)9request['Accept'] = 'application/json'10request['Content-Type'] = 'application/json'11request.body = {12value: 'TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8',13표시됨: true14}.to_json1516답변 = http.요청(요청)1718만약 응답.코드.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