/wallet/triggersmartcontract REST API Endpoint
身體參數
owner_address
字串
必填
載入中...
contract_address
字串
必填
載入中...
function_selector
字串
必填
載入中...
parameter
字串
必填
載入中...
fee_limit
整數
必填
載入中...
call_value
整數
必填
載入中...
permission_id
整數
載入中...
visible
布林值
載入中...
退貨
結果
載入中...
結果
載入中...
程式碼
載入中...
訊息
載入中...
energy_used
載入中...
constant_result
載入中...
交易
載入中...
visible
載入中...
txid
載入中...
raw_data
載入中...
合約
載入中...
parameter
載入中...
值
載入中...
call_value
載入中...
owner_address
載入中...
contract_address
載入中...
資料
載入中...
call_token_value
載入中...
token_id
載入中...
type_url
載入中...
類型
載入中...
ref_block_bytes
載入中...
ref_block_hash
載入中...
expiration
載入中...
時間戳記
載入中...
raw_data_hex
載入中...
請求
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/triggersmartcontract \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",7"contract_address": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs",8"function_selector": "transfer(address,uint256)",9"parameter": "00000000000000000000004115208EF33A926919ED270E2FA61367B2DA3753DA0000000000000000000000000000000000000000000000000000000000000032",10"fee_limit": 1000000000,11"call_value": 0,12"visible": true13}14'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/triggersmartcontract \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",7"contract_address": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs",8"function_selector": "transfer(address,uint256)",9"parameter": "00000000000000000000004115208EF33A926919ED270E2FA61367B2DA3753DA0000000000000000000000000000000000000000000000000000000000000032",10"fee_limit": 1000000000,11"call_value": 0,12"visible": true13}14'
1fetch('https://docs-demo.tron-mainnet.quiknode.pro/wallet/triggersmartcontract', {2方法: 'POST',3headers: {4「接受」: 'application/json',5「Content-Type」: 'application/json'6},7body: JSON.stringify({8owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',9contract_address: 'TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs',10function_selector: 'transfer(address,uint256)',11parameter: '00000000000000000000004115208EF33A926919ED270E2FA61367B2DA3753DA0000000000000000000000000000000000000000000000000000000000000032',12fee_limit: 1000000000,13call_value: 0,14visible: true15})16})17.接著(回應 => response.json())18.then(data => {19// Handle the response data here20console.log(data);21})22.catchcatch(錯誤 => {23// Handle any errors here24控制台.錯誤(錯誤);25});26
1fetch('https://docs-demo.tron-mainnet.quiknode.pro/wallet/triggersmartcontract', {2方法: 'POST',3headers: {4「接受」: 'application/json',5「Content-Type」: 'application/json'6},7body: JSON.stringify({8owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',9contract_address: 'TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs',10function_selector: 'transfer(address,uint256)',11parameter: '00000000000000000000004115208EF33A926919ED270E2FA61367B2DA3753DA0000000000000000000000000000000000000000000000000000000000000032',12fee_limit: 1000000000,13call_value: 0,14visible: true15})16})17.接著(回應 => response.json())18.then(data => {19// Handle the response data here20console.log(data);21})22.catchcatch(錯誤 => {23// Handle any errors here24控制台.錯誤(錯誤);25});26
1匯入 請求2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/triggersmartcontract'5標題 = {6「接受」: 'application/json',7「Content-Type」: 'application/json'8}9資料 = {10'owner_address': 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',11'contract_address': 'TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs',12'function_selector': 'transfer(address,uint256)',13'parameter': '00000000000000000000004115208EF33A926919ED270E2FA61367B2DA3753DA0000000000000000000000000000000000000000000000000000000000000032',14'fee_limit': 1000000000,15'call16
1匯入 請求2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/triggersmartcontract'5標題 = {6「接受」: 'application/json',7「Content-Type」: 'application/json'8}9資料 = {10'owner_address': 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',11'contract_address': 'TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs',12'function_selector': 'transfer(address,uint256)',13'parameter': '00000000000000000000004115208EF33A926919ED270E2FA61367B2DA3753DA0000000000000000000000000000000000000000000000000000000000000032',14'fee_limit': 1000000000,15'call16
1需要 'net/http'2require 'json'34url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/triggersmartcontract')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 = {12owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',13contract_address: 'TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs',14function_selector: 'transfer(address,uint256)',15parameter: '00000000000000000000004115208EF33A926919ED270E2FA61367B2DA3753DA0000000000000000000000000000000000000000000000000000000000000032',16fee_limit: 1000000000,17call_value: 0,18visible: true19}.to_json2021回應 = http.請求(請求)2223if response.code.to_i == 20024data = JSON.parse(response.body)25# Handle the response data here26puts data27else28# Handle the error here29puts "Error: #{response.code} #{response.message}"30結束31
1需要 'net/http'2require 'json'34url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/triggersmartcontract')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 = {12owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',13contract_address: 'TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs',14function_selector: 'transfer(address,uint256)',15parameter: '00000000000000000000004115208EF33A926919ED270E2FA61367B2DA3753DA0000000000000000000000000000000000000000000000000000000000000032',16fee_limit: 1000000000,17call_value: 0,18visible: true19}.to_json2021回應 = http.請求(請求)2223if response.code.to_i == 20024data = JSON.parse(response.body)25# Handle the response data here26puts data27else28# Handle the error here29puts "Error: #{response.code} #{response.message}"30結束31