/wallet/triggersmartcontract REST API Endpoint
身体参数
owner_address
字符串
必填
正在加载...
contract_address
字符串
必填
正在加载...
function_selector
字符串
必填
正在加载...
参数
字符串
必填
正在加载...
fee_limit
整数
必填
正在加载...
call_value
整数
必填
正在加载...
permission_id
整数
正在加载...
visible
布尔型
正在加载...
退货
结果
正在加载...
结果
正在加载...
代码
正在加载...
消息
正在加载...
energy_used
正在加载...
常量结果
正在加载...
交易
正在加载...
visible
正在加载...
txid
正在加载...
原始数据
正在加载...
合同
正在加载...
参数
正在加载...
值
正在加载...
call_value
正在加载...
owner_address
正在加载...
contract_address
正在加载...
数据
正在加载...
call_token_value
正在加载...
token_id
正在加载...
type_url
正在加载...
类型
正在加载...
ref_block_bytes
正在加载...
ref_block_hash
正在加载...
到期
正在加载...
时间戳
正在加载...
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.然后(响应 => 响应.json())18.then(data => {19// Handle the response data here20console.log(data);21})22.catch(error => {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.然后(响应 => 响应.json())18.then(data => {19// Handle the response data here20console.log(data);21})22.catch(error => {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
1require '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请求 = Net::HTTP::POST.new(url)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
1require '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请求 = Net::HTTP::POST.new(url)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