TransferContract class

Create a TRX transfer transaction. If to_address does not exist, then create the account on the blockchain.

Inheritance

Constructors

TransferContract({required TronAddress ownerAddress, required TronAddress toAddress, required BigInt amount})
Create a new TransferContract instance with specified parameters.
TransferContract.deserialize(List<int> bytes)
factory
TransferContract.fromJson(Map<String, dynamic> json)
Create a new TransferContract instance by parsing a JSON map.
factory

Properties

amount BigInt
Transfer TRX amount, in sun
final
contractType TransactionContractType
no setteroverride
fieldIds List<int>
List of field IDs corresponding to the values.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
ownerAddress TronAddress
Transaction initiator address
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toAddress TronAddress
Destination address
final
toHex String
Gets the hexadecimal representation of the protocol buffer data.
no setterinherited
typeURL String
no setterinherited
values List
List of dynamic values to be encoded.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBuffer() List<int>
Converts the protocol buffer data to a byte buffer.
inherited
toJson() Map<String, dynamic>
Convert the TransferContract object to a JSON representation.
override
toString() String
Convert the TransferContract object to its string representation.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited