Skip to main content
Create a TRX transfer transaction. If to_address does not exist, then create the account on the blockchain. This method will use 30 Compute Units.

Parameters

  • owner_address - String - the transfer address, converted to a hex string
  • to_address - String - To_address is the transfer address, converted to a hex string
  • amount - int64 - Amount is the transfer amount, the unit is sun
  • Permission_id - int32 - Optional, for multi-signature use
  • visible - Boolean - Optional. Specifies whether the address is in Base58 format (default: false)
  • extra_data - String - Optional, any extra data to be included in the transaction, HEX format

Returns

Transaction - JSON object: Unsigned transaction, please refer to the Transaction in the Tron documentation for the fields contained in it. Since the transaction type is TransferContract, the fields contained in raw_data.contract[0].parameter.value in the transaction are as follows: