Parameters
- fromstringREQUIRED
The address of the account that sends the transaction and will be the owner of the new smart contract
- tostringREQUIRED
The address of the account that recieve the transaction
- datastringREQUIRED
The bytecode of the smart contract being deployed. It contains the actual code that will be executed on the blockchain
- gasstringREQUIRED
The maximum amount of gas that the transaction can consume to execute the smart contract creation. It is the fee limit
- 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
- 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 object containing following fields:
- amount
The amount of token to be transferred
- owner_address
The address of the owner of the token being transferred
- to_address
The address of the reciever to which the token is to be transferred
- 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