TronRequestFreezeBalance class

FreezeBalance This interface has been deprecated, please use FreezeBalanceV2 to stake TRX to obtain resources. developers.tron.network.

Inheritance

Constructors

TronRequestFreezeBalance({required TronAddress ownerAddress, required BigInt frozenBalance, required int frozenDuration, required String resource, TronAddress? receiverAddress, int? permissionId, bool visible = true})

Properties

frozenBalance BigInt
TRX stake amount, the unit is sun
final
frozenDuration int
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
method TronHTTPMethods
wallet/freezebalance
no setteroverride
ownerAddress TronAddress
Owner address
final
permissionId int?
for multi-signature use
final
receiverAddress TronAddress?
the address that will receive the resource
final
resource String
TRX stake type, 'BANDWIDTH' or 'ENERGY'
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
visible bool
Indicates whether the address is visible.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onResonse(Map<String, dynamic> result) Map<String, dynamic>
Converts the response result to the specified type RESULT.
inherited
toJson() Map<String, dynamic>
Converts the request parameters to a JSON format.
override
toRequest(int _) TronRequestDetails
Converts the request parameters to TronRequestDetails with a unique identifier.
inherited
toString() String
A string representation of this object.
override

Operators

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