/wallet/deploycontract REST API Endpoint
身体パラメータ
abi
json
必須
読み込み中...
bytecode
文字列
必須
読み込み中...
fee_limit
整数
必須
読み込み中...
parameter
文字列
必須
読み込み中...
origin_energy_limit
整数
必須
読み込み中...
owner_address
文字列
必須
読み込み中...
名前
文字列
必須
読み込み中...
call_value
文字列
必須
読み込み中...
consume_user_resource_percent
整数
必須
読み込み中...
permission_id
整数
読み込み中...
表示されている
ブール値
読み込み中...
返品
表示されている
読み込み中...
txid
読み込み中...
raw_data
読み込み中...
契約
読み込み中...
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「承諾」: '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});1314fetch(url, {15メソッド: 'POST',16ヘッダー: ヘッダー:,17body: body18})19.その後(レスポンス => レスポンス.json())20.then(data => {21// Handle response data22コンソール.log(データ);23})24.catchcatch(エラー => {25// Handle error26コンソール.エラー(エラー);27});28
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/deploycontract';2const ヘッダー = {3「承諾」: '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});1314fetch(url, {15メソッド: 'POST',16ヘッダー: ヘッダー:,17body: body18})19.その後(レスポンス => レスポンス.json())20.then(data => {21// Handle response data22コンソール.log(データ);23})24.catchcatch(エラー => {25// Handle error26コンソール.エラー(エラー);27});28
1import リクエスト2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/deploycontract'5ヘッダー = {6「承諾」: '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「承諾」: '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 = ネット::HTTP.new(url.ホスト, url.ポート)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 = ネット::HTTP.new(url.ホスト, url.ポート)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