TronRequestFreezeBalanceV2 class

In Stake2.0, stake an amount of TRX to obtain bandwidth or energy, and obtain equivalent TRON Power(TP) according to the staked amount. developers.tron.network.

Inheritance

Constructors

TronRequestFreezeBalanceV2({required TronAddress ownerAddress, required BigInt frozenBalance, String? resource, int? permissionId, bool visible = true})
TronRequestFreezeBalanceV2.fromContract(FreezeBalanceV2Contract contract, {int? permissionId, bool visible = true})
factory

Properties

frozenBalance BigInt
TRX stake amount, the unit is sun
final
hashCode int
The hash code for this object.
no setterinherited
method TronHTTPMethods
method for the request.
no setteroverride
ownerAddress TronAddress
Owner address
final
permissionId int?
for multi-signature use
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) ParsedContractRequest
Converts the response result to the specified type RESULT.
override
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