Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
owner_address
— address of the account deploying the contract in hexadecimal formatabi
— contract ABI (Application Binary Interface) as a JSON string defining contract methods and eventsbytecode
— compiled contract bytecode in hexadecimal formatparameter
— (optional) constructor parameters encoded in hexadecimal formatcall_value
— (optional) amount of TRX to transfer to the contract during deployment (in SUN, 1 TRX = 1,000,000 SUN)consume_user_resource_percent
— (optional) percentage of caller’s resources used for contract calls (0-100, default 100)fee_limit
— (optional) maximum energy fee willing to pay for deployment (in SUN)origin_energy_limit
— (optional) energy limit provided by the contract creator for future callsname
— (optional) human-readable name for the contract
Response
visible
— boolean indicating whether addresses are in visible formattxID
— unique transaction ID for the deployment transactionraw_data
— raw transaction data containing all deployment parametersraw_data_hex
— raw transaction data encoded in hexadecimal format
Use case
Thewallet/deploycontract
method is used for:
- Deploying new smart contracts to the TRON blockchain.
- Creating TRC20 tokens, NFT contracts, and other decentralized applications.
- Setting up contract resource limits and fee structures during deployment.
- Preparing deployment transactions that can be signed offline for security.
- Building deployment tools and contract management platforms.
- Establishing smart contract infrastructure for DApps and services.
This method only creates the deployment transaction. You must sign the transaction and use
wallet/broadcasttransaction
to actually deploy the contract to the network.Body
application/json
Address deploying the contract in hex format
Contract ABI (Application Binary Interface) as JSON string
Contract bytecode in hex format
Constructor parameters encoded in hex format
Amount of TRX to transfer to contract (in SUN)
Percentage of caller's resources used (0-100)
Maximum energy fee willing to pay (in SUN)
Energy limit provided by contract creator
Human-readable contract name