/wallet/getcontract REST API Endpoint
Body Parameters
value
string
REQUIRED
Loading...
visible
boolean
Loading...
Returns
bytecode
Loading...
name
Loading...
origin_address
Loading...
abi
Loading...
entrys
Loading...
stateMutability
Loading...
type
Loading...
name
Loading...
constant
Loading...
inputs
Loading...
indexed
Loading...
name
Loading...
type
Loading...
output
Loading...
type
Loading...
origin_energy_limit
Loading...
contract_address
Loading...
code_hash
Loading...
Request
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcontract \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"value": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs",7"visible": true8}9'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcontract \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"value": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs",7"visible": true8}9'
1fetch('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcontract', {2method: 'POST',3headers: {4'Accept': 'application/json',5'Content-Type': 'application/json'6},7body: JSON.stringify({8value: 'TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs',9visible: true10})11})12.then(response => response.json())13.then(data => {14// Handle the response data here15console.log(data);16})17.catch(error => {18// Handle any errors here19console.error(error);20});21
1fetch('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcontract', {2method: 'POST',3headers: {4'Accept': 'application/json',5'Content-Type': 'application/json'6},7body: JSON.stringify({8value: 'TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs',9visible: true10})11})12.then(response => response.json())13.then(data => {14// Handle the response data here15console.log(data);16})17.catch(error => {18// Handle any errors here19console.error(error);20});21
1import requests2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcontract'5headers = {6'Accept': 'application/json',7'Content-Type': 'application/json'8}9data = {10'value': 'TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs',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
1import requests2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcontract'5headers = {6'Accept': 'application/json',7'Content-Type': 'application/json'8}9data = {10'value': 'TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs',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
1require 'net/http'2require 'json'34url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcontract')5http = Net::HTTP.new(url.host, url.port)6http.use_ssl = true78request = Net::HTTP::Post.new(url)9request['Accept'] = 'application/json'10request['Content-Type'] = 'application/json'11request.body = {12value: 'TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs',13visible: true14}.to_json1516response = http.request(request)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}"25end26
1require 'net/http'2require 'json'34url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getcontract')5http = Net::HTTP.new(url.host, url.port)6http.use_ssl = true78request = Net::HTTP::Post.new(url)9request['Accept'] = 'application/json'10request['Content-Type'] = 'application/json'11request.body = {12value: 'TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs',13visible: true14}.to_json1516response = http.request(request)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}"25end26
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free