/wallet/triggerconstantcontract REST API Endpoint
Body Parameters
owner_address
string
REQUIRED
Loading...
contract_address
string
REQUIRED
Loading...
call_value
integer
Loading...
function_selector
string
REQUIRED
Loading...
parameter
string
REQUIRED
Loading...
visible
boolean
Loading...
Returns
result
Loading...
result
Loading...
code
Loading...
message
Loading...
energy_used
Loading...
constant_result
Loading...
energy_penalty
Loading...
transaction
Loading...
ret
Loading...
visible
Loading...
txID
Loading...
raw_data
Loading...
contract
Loading...
parameter
Loading...
value
Loading...
owner_address
Loading...
contract_address
Loading...
data
Loading...
type_url
Loading...
type
Loading...
ref_block_bytes
Loading...
ref_block_hash
Loading...
expiration
Loading...
timestamp
Loading...
raw_data_hex
Loading...
Request
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/triggerconstantcontract \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",7"contract_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",8"function_selector": "balanceOf(address)",9"parameter": "000000000000000000000000FD49EDA0F23FF7EC1D03B52C3A45991C24CD440E",10"visible": true11}12'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/triggerconstantcontract \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",7"contract_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",8"function_selector": "balanceOf(address)",9"parameter": "000000000000000000000000FD49EDA0F23FF7EC1D03B52C3A45991C24CD440E",10"visible": true11}12'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/triggerconstantcontract';2const headers = {3'Accept': 'application/json',4'Content-Type': 'application/json'5};6const body = JSON.stringify({7"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",8"contract_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",9"function_selector": "balanceOf(address)",10"parameter": "000000000000000000000000FD49EDA0F23FF7EC1D03B52C3A45991C24CD440E",11"visible": true12});1314fetch(url, {15method: 'POST',16headers: headers,17body: body18})19.then(response => response.json())20.then(data => {21// Handle response data22console.log(data);23})24.catch(error => {25// Handle error26console.error(error);27});28
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/triggerconstantcontract';2const headers = {3'Accept': 'application/json',4'Content-Type': 'application/json'5};6const body = JSON.stringify({7"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",8"contract_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",9"function_selector": "balanceOf(address)",10"parameter": "000000000000000000000000FD49EDA0F23FF7EC1D03B52C3A45991C24CD440E",11"visible": true12});1314fetch(url, {15method: 'POST',16headers: headers,17body: body18})19.then(response => response.json())20.then(data => {21// Handle response data22console.log(data);23})24.catch(error => {25// Handle error26console.error(error);27});28
1import requests2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/triggerconstantcontract'5headers = {6'Accept': 'application/json',7'Content-Type': 'application/json'8}9data = {10"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",11"contract_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",12"function_selector": "balanceOf(address)",13"parameter": "000000000000000000000000FD49EDA0F23FF7EC1D03B52C3A45991C24CD440E",14"visible": True15}1617response = requests.post(url, headers=headers, json=data)18response_body = response.json()1920# Handle response data21print(response_body)22
1import requests2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/triggerconstantcontract'5headers = {6'Accept': 'application/json',7'Content-Type': 'application/json'8}9data = {10"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",11"contract_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",12"function_selector": "balanceOf(address)",13"parameter": "000000000000000000000000FD49EDA0F23FF7EC1D03B52C3A45991C24CD440E",14"visible": True15}1617response = requests.post(url, headers=headers, json=data)18response_body = response.json()1920# Handle response data21print(response_body)22
1require 'net/http'2require 'json'34url = URI.parse('https://docs-demo.tron-mainnet.quiknode.pro/wallet/triggerconstantcontract')5http = Net::HTTP.new(url.host, url.port)6headers = {7'Accept' => 'application/json',8'Content-Type' => 'application/json'9}10data = {11"owner_address" => "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",12"contract_address" => "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",13"function_selector" => "balanceOf(address)",14"parameter" => "000000000000000000000000FD49EDA0F23FF7EC1D03B52C3A45991C24CD440E",15"visible" => true16}1718request = Net::HTTP::Post.new(url.path, headers)19request.body = data.to_json2021response = http.request(request)22response_body = JSON.parse(response.body)2324# Handle response data25puts response_body26
1require 'net/http'2require 'json'34url = URI.parse('https://docs-demo.tron-mainnet.quiknode.pro/wallet/triggerconstantcontract')5http = Net::HTTP.new(url.host, url.port)6headers = {7'Accept' => 'application/json',8'Content-Type' => 'application/json'9}10data = {11"owner_address" => "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",12"contract_address" => "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",13"function_selector" => "balanceOf(address)",14"parameter" => "000000000000000000000000FD49EDA0F23FF7EC1D03B52C3A45991C24CD440E",15"visible" => true16}1718request = Net::HTTP::Post.new(url.path, headers)19request.body = data.to_json2021response = http.request(request)22response_body = JSON.parse(response.body)2324# Handle response data25puts response_body26
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free