/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
로딩 중...
contract
로딩 중...
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'Accept': '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.catchcatch (error => {23// Handle any errors here24콘솔.오류(오류);25});26
1fetch('https://docs-demo.tron-mainnet.quiknode.pro/wallet/triggersmartcontract', {2메서드: 'POST',3headers: {4'Accept': '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.catchcatch (error => {23// Handle any errors here24콘솔.오류(오류);25});26
1import 요청2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/triggersmartcontract'5헤더 = {6'Accept': '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
1import 요청2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/triggersmartcontract'5헤더 = {6'Accept': '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요청 = 순::HTTP::POST.새(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요청 = 순::HTTP::POST.새(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