FreezeBalanceContract class

This interface has been deprecated, please use FreezeBalanceV2 to stake TRX to obtain resources.

Inheritance

Constructors

FreezeBalanceContract({required TronAddress ownerAddress, BigInt? frozenBalance, BigInt? frozenDuration, ResourceCode? resource, TronAddress? receiverAddress})
Create a new FreezeBalanceContract instance with specified parameters.
FreezeBalanceContract.deserialize(List<int> bytes)
factory
FreezeBalanceContract.fromJson(Map<String, dynamic> json)
Create a new FreezeBalanceContract instance by parsing a JSON map.
factory

Properties

contractType TransactionContractType
no setteroverride
fieldIds List<int>
List of field IDs corresponding to the values.
no setteroverride
frozenBalance BigInt?
TRX stake amount
final
frozenDuration BigInt?
Lock-up duration for this stake, now the value can only be 3 days. It is not allowed to unstake within 3 days after the stake. You can unstake TRX after the 3 lock-up days
final
hashCode int
The hash code for this object.
no setterinherited
ownerAddress TronAddress
Owner address
final
receiverAddress TronAddress?
the address that will receive the resource
final
resource ResourceCode?
TRX stake type, 'BANDWIDTH' or 'ENERGY'
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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 FreezeBalanceContract object to a JSON representation.
override
toString() String
Convert the FreezeBalanceContract object to its string representation.
override

Operators

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