/wallet/deploycontract REST API Endpoint
Paramètres du corps
abi
json
OBLIGATOIRE
Chargement...
bytecode
chaîne de caractères
OBLIGATOIRE
Chargement...
limite des frais
entier
OBLIGATOIRE
Chargement...
paramètre
chaîne de caractères
OBLIGATOIRE
Chargement...
origin_energy_limit
entier
OBLIGATOIRE
Chargement...
owner_address
chaîne de caractères
OBLIGATOIRE
Chargement...
nom
chaîne de caractères
OBLIGATOIRE
Chargement...
call_value
chaîne de caractères
OBLIGATOIRE
Chargement...
consume_user_resource_percent
entier
OBLIGATOIRE
Chargement...
permission_id
entier
Chargement...
visible
booléen
Chargement...
Renvoie
visible
Chargement...
ID de transaction
Chargement...
données brutes
Chargement...
contrat
Chargement...
paramètre
Chargement...
valeur
Chargement...
new_contract
Chargement...
owner_address
Chargement...
call_token_value
Chargement...
token_id
Chargement...
type_url
Chargement...
type
Chargement...
octets du bloc de référence
Chargement...
hachage du bloc de référence
Chargement...
expiration
Chargement...
horodatage
Chargement...
raw_data_hex
Chargement...
Requête
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 headers = {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});1314fetch(url, {15method: 'POST',16headers: headers,17body: body18})19.then(response => response.json())20.then(data => {21// Handle response data22console.log(data);23})24.catch(error => {25// Handle error26console.error(error);27});28
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/deploycontract';2const headers = {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});1314fetch(url, {15method: 'POST',16headers: headers,17body: body18})19.then(response => response.json())20.then(data => {21// Handle response data22console.log(data);23})24.catch(error => {25// Handle error26console.error(error);27});28
1import requests2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/deploycontract'5headers = {6« Accepter »: 'application/json',7« Content-Type »: 'application/json'8}9data = {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 requests2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/deploycontract'5headers = {6« Accepter »: 'application/json',7« Content-Type »: 'application/json'8}9data = {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)6headers = {7'Accept' => 'application/json',8'Content-Type' => 'application/json'9}10data = {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)19request.body = data.to_json2021response = http.request(request)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)6headers = {7'Accept' => 'application/json',8'Content-Type' => 'application/json'9}10data = {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)19request.body = data.to_json2021response = http.request(request)22response_body = JSON.parse(response.body)2324# Handle response data25puts response_body26
Vous n'avez pas encore de compte ?
Créez votre endpoint Quicknode en quelques secondes et commencez à développer
Commencez gratuitement