TriggerSmartContract RPC Method
매개변수
출처:
문자열
필수
로딩 중...
~에
문자열
필수
로딩 중...
데이터
문자열
필수
로딩 중...
가스
문자열
필수
로딩 중...
값
문자열
필수
로딩 중...
tokenId
정수
필수
로딩 중...
tokenValue
정수
필수
로딩 중...
반품
거래
로딩 중...
visible
로딩 중...
txID
로딩 중...
raw_data
로딩 중...
contract
로딩 중...
parameter
로딩 중...
값
로딩 중...
금액
로딩 중...
owner_address
로딩 중...
to_address
로딩 중...
type_url
로딩 중...
유형
로딩 중...
ref_block_bytes
로딩 중...
ref_block_hash
로딩 중...
expiration
로딩 중...
fee_limit
로딩 중...
타임스탬프
로딩 중...
raw_data_hex
로딩 중...
요청
1curl https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc \2-X POST \3-H "Content-Type: application/json" \4--data '{"id": 1337,5"jsonrpc": "2.0",6"method": "buildTransaction",7"params": [8{9"from": "0xC4DB2C9DFBCB6AA344793F1DDA7BD656598A06D8",10"to": "0xf859b5c93f789f4bcffbe7cc95a71e28e5e6a5bd",11"data": "0x3be9ece7000000000000000000000000ba8e28bdb6e49fbb3f5cd82a9f5ce8363587f1f600000000000000000000000000000000000000000000000000000000000f42630000000000000000000000000000000000000000000000000000000000000001",12"gas": "0x245498",13"value": "0xA",14"tokenId": 1000035,15"tokenValue": 2016}17]1819}20'
1curl https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc \2-X POST \3-H "Content-Type: application/json" \4--data '{"id": 1337,5"jsonrpc": "2.0",6"method": "buildTransaction",7"params": [8{9"from": "0xC4DB2C9DFBCB6AA344793F1DDA7BD656598A06D8",10"to": "0xf859b5c93f789f4bcffbe7cc95a71e28e5e6a5bd",11"data": "0x3be9ece7000000000000000000000000ba8e28bdb6e49fbb3f5cd82a9f5ce8363587f1f600000000000000000000000000000000000000000000000000000000000f42630000000000000000000000000000000000000000000000000000000000000001",12"gas": "0x245498",13"value": "0xA",14"tokenId": 1000035,15"tokenValue": 2016}17]1819}20'
1var myHeaders = new Headers();2myHeaders.추가("Content-Type", "application/json");34var raw = JSON.stringify({5"id": 1337,6"jsonrpc": "2.0",7"method": "buildTransaction",8"params": [9{10"from": "0xC4DB2C9DFBCB6AA344793F1DDA7BD656598A06D8",11"to": "0xf859b5c93f789f4bcffbe7cc95a71e28e5e6a5bd",12"data": "0x3be9ece7000000000000000000000000ba8e28bdb6e49fbb3f5cd82a9f5ce8363587f1f600000000000000000000000000000000000000000000000000000000000f42630000000000000000000000000000000000000000000000000000000000000001",13"gas": "0x245498",14"value": "0xA",15"tokenId": 1000035,16"tokenValue": 2017}18]19});2021var requestOptions = {22메서드: 'POST',23헤더: myHeaders,24본문: raw,25리디렉션: 'follow'26};2728가져오기("https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc", requestOptions)29.그런 다음(응답 => response.text())30.그런 다음(결과 => console.log(result))31.catch(오류 => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.추가("Content-Type", "application/json");34var raw = JSON.stringify({5"id": 1337,6"jsonrpc": "2.0",7"method": "buildTransaction",8"params": [9{10"from": "0xC4DB2C9DFBCB6AA344793F1DDA7BD656598A06D8",11"to": "0xf859b5c93f789f4bcffbe7cc95a71e28e5e6a5bd",12"data": "0x3be9ece7000000000000000000000000ba8e28bdb6e49fbb3f5cd82a9f5ce8363587f1f600000000000000000000000000000000000000000000000000000000000f42630000000000000000000000000000000000000000000000000000000000000001",13"gas": "0x245498",14"value": "0xA",15"tokenId": 1000035,16"tokenValue": 2017}18]19});2021var requestOptions = {22메서드: 'POST',23헤더: myHeaders,24본문: raw,25리디렉션: 'follow'26};2728가져오기("https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc", requestOptions)29.그런 다음(응답 => response.text())30.그런 다음(결과 => console.log(result))31.catch(오류 => console.log('error', error));
1import 요청2import json34url = "https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc"56페이로드 = json.dumps({7"id": 1337,8"jsonrpc": "2.0",9"method": "buildTransaction",10"params": [11{12"from": "0xC4DB2C9DFBCB6AA344793F1DDA7BD656598A06D8",13"to": "0xf859b5c93f789f4bcffbe7cc95a71e28e5e6a5bd",14"data": "0x3be9ece7000000000000000000000000ba8e28bdb6e49fbb3f5cd82a9f5ce8363587f1f600000000000000000000000000000000000000000000000000000000000f42630000000000000000000000000000000000000000000000000000000000000001",15"gas": "0x245498",16"value": "0xA",17"tokenId": 1000035,18"tokenValue": 2019}20]21})22헤더 = {23'Content-Type': 'application/json'24}2526답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)2728인쇄(응답.text)29
1import 요청2import json34url = "https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc"56페이로드 = json.dumps({7"id": 1337,8"jsonrpc": "2.0",9"method": "buildTransaction",10"params": [11{12"from": "0xC4DB2C9DFBCB6AA344793F1DDA7BD656598A06D8",13"to": "0xf859b5c93f789f4bcffbe7cc95a71e28e5e6a5bd",14"data": "0x3be9ece7000000000000000000000000ba8e28bdb6e49fbb3f5cd82a9f5ce8363587f1f600000000000000000000000000000000000000000000000000000000000f42630000000000000000000000000000000000000000000000000000000000000001",15"gas": "0x245498",16"value": "0xA",17"tokenId": 1000035,18"tokenValue": 2019}20]21})22헤더 = {23'Content-Type': 'application/json'24}2526답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)2728인쇄(응답.text)29
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc")67http = Net::HTTP.new(url.호스트, url.포트);8요청 = 순::HTTP::POST.새(URL)9요청["Content-Type"] = "application/json"10요청.본문 = JSON.dump({11"id": 1337,12"jsonrpc": "2.0",13"method": "buildTransaction",14"params": [15{16"from": "0xC4DB2C9DFBCB6AA344793F1DDA7BD656598A06D8",17"to": "0xf859b5c93f789f4bcffbe7cc95a71e28e5e6a5bd",18"data": "0x3be9ece7000000000000000000000000ba8e28bdb6e49fbb3f5cd82a9f5ce8363587f1f600000000000000000000000000000000000000000000000000000000000f42630000000000000000000000000000000000000000000000000000000000000001",19"gas": "0x245498",20"value": "0xA",21"tokenId": 1000035,22"tokenValue": 2023}24]25})2627답변 = http.요청(요청)28응답을 넣습니다.read_body29
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc")67http = Net::HTTP.new(url.호스트, url.포트);8요청 = 순::HTTP::POST.새(URL)9요청["Content-Type"] = "application/json"10요청.본문 = JSON.dump({11"id": 1337,12"jsonrpc": "2.0",13"method": "buildTransaction",14"params": [15{16"from": "0xC4DB2C9DFBCB6AA344793F1DDA7BD656598A06D8",17"to": "0xf859b5c93f789f4bcffbe7cc95a71e28e5e6a5bd",18"data": "0x3be9ece7000000000000000000000000ba8e28bdb6e49fbb3f5cd82a9f5ce8363587f1f600000000000000000000000000000000000000000000000000000000000f42630000000000000000000000000000000000000000000000000000000000000001",19"gas": "0x245498",20"value": "0xA",21"tokenId": 1000035,22"tokenValue": 2023}24]25})2627답변 = http.요청(요청)28응답을 넣습니다.read_body29