FreezeBalanceV2Contract 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
- Inheritance
- 
    - Object
- TronProtocolBufferImpl
- TronBaseContract
- FreezeBalanceV2Contract
 
Constructors
- FreezeBalanceV2Contract({required TronAddress ownerAddress, required BigInt frozenBalance, ResourceCode? resource})
- Create a new FreezeBalanceV2Contract instance with specified parameters.
- 
          FreezeBalanceV2Contract.deserialize(List<int> bytes)
- 
          
            factory
- 
          FreezeBalanceV2Contract.fromJson(Map<String, dynamic> json)
- 
          Create a new FreezeBalanceV2Contract 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, the unit is sun
  final
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- ownerAddress → TronAddress
- 
  Account address
  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
- trxAmount → BigInt
- 
  the trx amount of contract;
if contract need any trx amount for spending, stack, freez or ....
  no setteroverride
- typeURL → String
- 
  
  no setterinherited
- values → List
- 
  List of dynamic values to be encoded.
  no setteroverride
Methods
- 
  cast<T extends TronBaseContract> () → T 
- 
  
  inherited
- 
  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({bool visible = true}) → Map< String, dynamic> 
- 
  Convert the FreezeBalanceV2Contract object to a JSON representation.
  override
- 
  toString() → String 
- 
  Convert the FreezeBalanceV2Contract object to its string representation.
  override
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited