Deploy a smart contract

Deploys a new smart contract to the TRON blockchain. The owner address must have sufficient funds to pay for the deployment.

Request

This endpoint expects an object.
owner_addressstringRequired
Base58 address of the contract deployer.
abistringRequired

JSON-encoded ABI string for the smart contract.

bytecodestringRequired

Hex-encoded bytecode of the smart contract.

namestringOptional
Name for the contract.
consume_user_resource_percentintegerOptional

Percent of user resource consumption for contract execution (0-100).

origin_energy_limitintegerOptional
Maximum energy limit for contract execution.
parameterstringOptional

Constructor parameters, hex-encoded.

visiblebooleanOptional

Indicates if the address is base58 (true) or hex (false).

Response

Unsigned transaction object for contract deployment.
visibleboolean or null
txIDstring or null
raw_dataobject or null
raw_data_hexstring or null