Parameters
- fromstringREQUIRED
The address of the account that sends the transaction and will be the owner of the new smart contract
- namestringREQUIRED
The name of the smart contract being deployed
- gasstringREQUIRED
The maximum amount of gas that the transaction can consume to execute the smart contract creation. It is the fee limit
- abistringREQUIRED
The ABI (Application Binary Interface) of the smart contract being deployed. It defines the functions and events that can be called or emitted by the smart contract
- datastringREQUIRED
The bytecode of the smart contract being deployed. It contains the actual code that will be executed on the blockchain
- consumeUserResourcePercentintegerREQUIRED
The percentage of the energy limit that is paid by the user instead of the smart contract owner
- originEnergyLimitintegerREQUIRED
The total amount of energy that the smart contract can consume during its execution
- valuestringREQUIRED
The amount of TRX (Tronix) that is transferred with the transaction
- tokenIdintegerREQUIRED
The ID of the token being transferred with the transaction
- tokenValueintegerREQUIRED
The amount of tokens being transferred with the transaction
Returns
- transaction
The transaction object which contain the following fields:
- visible
A boolean value indicating whether the transaction is visible on the blockchain or not
- txID
The id of the transaction
- contract_address
The address of the smart contract involved in the transaction
- raw_data
The raw transaction data, including the contract and its parameters
- contract
The details of the smart contract involved in the transaction
- parameter
The parameter of the smart contract function being called in the transaction
- value
The value being sent in the transaction
- token_id
The ID of the token being transferred in the smart contract
- owner_address
The address of the owner of the token being transferred
- call_token_value
The amount of the token being transferred in the smart contract call
- new_contract
The details of the new smart contract being created
- bytecode
The bytecode of the new smart contract being created
- consume_user_resource_percent
The percentage of user resources to be consumed by the new smart contract
- name
The name of the smart contract function being called
- origin_address
The address of the originator of the transaction
- abi
The ABI (Application Binary Interface) of the smart contract being called
- entrys
The functions defined in the smart contract ABI
- outputs
The output parameters of the function being called in the smart contract
- type
The data type of the parameter or output being described
- payable
A boolean value indicating whether the function being called in the smart contract is payable or not
- name
The name associated with the smart contract
- stateMutability
The state mutability of the function being called in the smart contract
- type
The type of output
- origin_energy_limit
The energy limit for the transaction
- call_value
The TRX amount being sent in the transaction
- type_url
The type of data being represented by the parameter or output
- type
The type of smart contract
- ref_block_bytes
The bytes of the previous block hash
- ref_block_hash
The hash of the previous block
- expiration
The expiration time of the transaction
- fee_limit
The maximum fee limit for the transaction
- timestamp
The timestamp of the transaction
- raw_data_hex
The raw transaction data, encoded in hexadecimal format