/wallet/deploycontract REST API Endpoint
신체 매개변수
abi
json
필수
로딩 중...
bytecode
문자열
필수
로딩 중...
fee_limit
정수
필수
로딩 중...
parameter
문자열
필수
로딩 중...
origin_energy_limit
정수
필수
로딩 중...
owner_address
문자열
필수
로딩 중...
이름
문자열
필수
로딩 중...
call_value
문자열
필수
로딩 중...
consume_user_resource_percent
정수
필수
로딩 중...
permission_id
정수
로딩 중...
visible
부울
로딩 중...
반품
visible
로딩 중...
txid
로딩 중...
raw_data
로딩 중...
contract
로딩 중...
parameter
로딩 중...
값
로딩 중...
new_contract
로딩 중...
owner_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/deploycontract \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"abi": "[{\"constant\":false,\"inputs\":[{\"name\":\"key\",\"type\":\"uint256\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"set\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"key\",\"type\":\"uint256\"}],\"name\":\"get\",\"outputs\":[{\"name\":\"value\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]",7"bytecode": "608060405234801561001057600080fd5b5060de8061001f6000396000f30060806040526004361060485763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631ab06ee58114604d5780639507d39a146067575b600080fd5b348015605857600080fd5b506065600435602435608e565b005b348015607257600080fd5b50607c60043560a0565b60408051918252519081900360200190f35b60009182526020829052604090912055565b600090815260208190526040902054905600a165627a7a72305820fdfe832221d60dd582b4526afa20518b98c2e1cb0054653053a844cf265b25040029",8"owner_address": "TJmmqjb1DK9TTZbQXzRQ2AuA94z4gKAPFh",9"name": "SomeContract",10"visible": true11}12'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/deploycontract \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"abi": "[{\"constant\":false,\"inputs\":[{\"name\":\"key\",\"type\":\"uint256\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"set\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"key\",\"type\":\"uint256\"}],\"name\":\"get\",\"outputs\":[{\"name\":\"value\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]",7"bytecode": "608060405234801561001057600080fd5b5060de8061001f6000396000f30060806040526004361060485763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631ab06ee58114604d5780639507d39a146067575b600080fd5b348015605857600080fd5b506065600435602435608e565b005b348015607257600080fd5b50607c60043560a0565b60408051918252519081900360200190f35b60009182526020829052604090912055565b600090815260208190526040902054905600a165627a7a72305820fdfe832221d60dd582b4526afa20518b98c2e1cb0054653053a844cf265b25040029",8"owner_address": "TJmmqjb1DK9TTZbQXzRQ2AuA94z4gKAPFh",9"name": "SomeContract",10"visible": true11}12'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/deploycontract';2const 헤더 = {3'Accept': 'application/json',4'Content-Type': 'application/json'5};6const body = JSON.stringify({7"abi": "[{\"constant\":false,\"inputs\":[{\"name\":\"key\",\"type\":\"uint256\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"set\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"key\",\"type\":\"uint256\"}],\"name\":\"get\",\"outputs\":[{\"name\":\"value\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]",8"bytecode": "608060405234801561001057600080fd5b5060de8061001f6000396000f30060806040526004361060485763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631ab06ee58114604d5780639507d39a146067575b600080fd5b348015605857600080fd5b506065600435602435608e565b005b348015607257600080fd5b50607c60043560a0565b60408051918252519081900360200190f35b60009182526020829052604090912055565b600090815260208190526040902054905600a165627a7a72305820fdfe832221d60dd582b4526afa20518b98c2e1cb0054653053a844cf265b25040029",9"owner_address": "TJmmqjb1DK9TTZbQXzRQ2AuA94z4gKAPFh",10"name": "SomeContract",11"visible": true12});1314가져오기(url, {15메서드: 'POST',16헤더: 헤더,17body: body18})19.그런 다음(응답 => 응답.json())20.then(data => {21// Handle response data22console.log(data);23})24.catchcatch (error => {25// Handle error26콘솔.오류(오류);27});28
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/deploycontract';2const 헤더 = {3'Accept': 'application/json',4'Content-Type': 'application/json'5};6const body = JSON.stringify({7"abi": "[{\"constant\":false,\"inputs\":[{\"name\":\"key\",\"type\":\"uint256\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"set\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"key\",\"type\":\"uint256\"}],\"name\":\"get\",\"outputs\":[{\"name\":\"value\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]",8"bytecode": "608060405234801561001057600080fd5b5060de8061001f6000396000f30060806040526004361060485763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631ab06ee58114604d5780639507d39a146067575b600080fd5b348015605857600080fd5b506065600435602435608e565b005b348015607257600080fd5b50607c60043560a0565b60408051918252519081900360200190f35b60009182526020829052604090912055565b600090815260208190526040902054905600a165627a7a72305820fdfe832221d60dd582b4526afa20518b98c2e1cb0054653053a844cf265b25040029",9"owner_address": "TJmmqjb1DK9TTZbQXzRQ2AuA94z4gKAPFh",10"name": "SomeContract",11"visible": true12});1314가져오기(url, {15메서드: 'POST',16헤더: 헤더,17body: body18})19.그런 다음(응답 => 응답.json())20.then(data => {21// Handle response data22console.log(data);23})24.catchcatch (error => {25// Handle error26콘솔.오류(오류);27});28
1import 요청2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/deploycontract'5헤더 = {6'Accept': 'application/json',7'Content-Type': 'application/json'8}9데이터 = {10"abi": "[{\"constant\":False,\"inputs\":[{\"name\":\"key\",\"type\":\"uint256\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"set\",\"outputs\":[],\"payable\":False,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":True,\"inputs\":[{\"name\":\"key\",\"type\":\"uint256\"}],\"name\":\"get\",\"outputs\":[{\"name\":\"value\",\"type\":\"uint256\"}],\"payable\":False,\"stateMutability\":\"view\",\"type\":\"function\"}]",11"bytecode": "608060405234801561001057600080fd5b5060de8061001f6000396000f30060806040526004361060485763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631ab06ee58114604d5780639507d39a146067575b600080fd5b348015605857600080fd5b506065600435602435608e565b005b348015607257600080fd5b50607c60043560a0565b60408051918252519081900360200190f35b60009182526020829052604090912055565b600090815260208190526040902054905600a165627a7a72305820fdfe832221d60dd582b4526afa20518b98c2e1cb0054653053a844cf265b25040029",12"owner_address": "TJmmqjb1DK9TTZbQXzRQ2AuA94z4gKAPFh",13"name": "SomeContract",14"visible": True15}1617response = requests.post(url, headers=headers, json=data)18response_body = response.json()1920# Handle response data21print(response_body)22
1import 요청2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/deploycontract'5헤더 = {6'Accept': 'application/json',7'Content-Type': 'application/json'8}9데이터 = {10"abi": "[{\"constant\":False,\"inputs\":[{\"name\":\"key\",\"type\":\"uint256\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"set\",\"outputs\":[],\"payable\":False,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":True,\"inputs\":[{\"name\":\"key\",\"type\":\"uint256\"}],\"name\":\"get\",\"outputs\":[{\"name\":\"value\",\"type\":\"uint256\"}],\"payable\":False,\"stateMutability\":\"view\",\"type\":\"function\"}]",11"bytecode": "608060405234801561001057600080fd5b5060de8061001f6000396000f30060806040526004361060485763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631ab06ee58114604d5780639507d39a146067575b600080fd5b348015605857600080fd5b506065600435602435608e565b005b348015607257600080fd5b50607c60043560a0565b60408051918252519081900360200190f35b60009182526020829052604090912055565b600090815260208190526040902054905600a165627a7a72305820fdfe832221d60dd582b4526afa20518b98c2e1cb0054653053a844cf265b25040029",12"owner_address": "TJmmqjb1DK9TTZbQXzRQ2AuA94z4gKAPFh",13"name": "SomeContract",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/deploycontract')5http = Net::HTTP.new(url.host, url.port)6헤더 = {7'Accept' => 'application/json',8'Content-Type' => 'application/json'9}10데이터 = {11"abi" => "[{\"constant\":false,\"inputs\":[{\"name\":\"key\",\"type\":\"uint256\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"set\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"key\",\"type\":\"uint256\"}],\"name\":\"get\",\"outputs\":[{\"name\":\"value\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]",12"bytecode" => "608060405234801561001057600080fd5b5060de8061001f6000396000f30060806040526004361060485763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631ab06ee58114604d5780639507d39a146067575b600080fd5b348015605857600080fd5b506065600435602435608e565b005b348015607257600080fd5b50607c60043560a0565b60408051918252519081900360200190f35b60009182526020829052604090912055565b600090815260208190526040902054905600a165627a7a72305820fdfe832221d60dd582b4526afa20518b98c2e1cb0054653053a844cf265b25040029",13"owner_address" => "TJmmqjb1DK9TTZbQXzRQ2AuA94z4gKAPFh",14"name" => "SomeContract",15"visible" => true16}1718request = Net::HTTP::Post.new(url.path, headers)19요청.본문 = data.to_json2021답변 = http.요청(요청)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/deploycontract')5http = Net::HTTP.new(url.host, url.port)6헤더 = {7'Accept' => 'application/json',8'Content-Type' => 'application/json'9}10데이터 = {11"abi" => "[{\"constant\":false,\"inputs\":[{\"name\":\"key\",\"type\":\"uint256\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"set\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"key\",\"type\":\"uint256\"}],\"name\":\"get\",\"outputs\":[{\"name\":\"value\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]",12"bytecode" => "608060405234801561001057600080fd5b5060de8061001f6000396000f30060806040526004361060485763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631ab06ee58114604d5780639507d39a146067575b600080fd5b348015605857600080fd5b506065600435602435608e565b005b348015607257600080fd5b50607c60043560a0565b60408051918252519081900360200190f35b60009182526020829052604090912055565b600090815260208190526040902054905600a165627a7a72305820fdfe832221d60dd582b4526afa20518b98c2e1cb0054653053a844cf265b25040029",13"owner_address" => "TJmmqjb1DK9TTZbQXzRQ2AuA94z4gKAPFh",14"name" => "SomeContract",15"visible" => true16}1718request = Net::HTTP::Post.new(url.path, headers)19요청.본문 = data.to_json2021답변 = http.요청(요청)22response_body = JSON.parse(response.body)2324# Handle response data25puts response_body26