StakeAccount class
Stake Account
- Inheritance
- 
    - Object
- BorshObject
- StakeAccount
 
Constructors
- StakeAccount({required StakeAccountType type, required StakeAccountInfo? info})
- 
          Stake Account Information.
            const
- StakeAccount.fromAccountInfo(AccountInfo info)
- 
          Creates an instance of thisclass from an accountinfo.factory
- StakeAccount.fromBorshBase64(String encoded)
- 
          Creates an instance of thisclass from a base-64 encoded string.factory
- 
          StakeAccount.fromJson(Map<String, dynamic> json)
- 
          Creates an instance of thisclass from the constructor parameters defined in thejsonobject.factory
Properties
- borshSchema → BorshSchema
- 
  Maps thisclass' properties to codecs.no setteroverride
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- info → StakeAccountInfo?
- 
  
  final
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
- type → StakeAccountType
- 
  
  final
Methods
- 
  borshSize() → int 
- 
  Returns the serialized byte length of thisinstance.inherited
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  toBorsh() → Iterable< int> 
- 
  Serializes thisinstance into a buffer.inherited
- 
  toJson() → Map< String, dynamic> 
- 
  Serialises thisclass into a JSON object.override
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited
Static Properties
- codec → BorshStructCodec
- 
  The encoders/decoders of thisclass' properties.final
Static Methods
- 
  fromBorsh(Iterable< int> buffer) → StakeAccount
- 
  Creates an instance of thisclass from a buffer.override
- 
  tryFromAccountInfo(AccountInfo? info) → StakeAccount? 
- 
  Creates an instance of thisclass from an accountinfo.
- 
  tryFromBorsh(Iterable< int> ? buffer) → StakeAccount?
- 
  Creates an instance of thisclass from a buffer.override
- 
  tryFromBorshBase64(String? encoded) → StakeAccount? 
- 
  Creates an instance of thisclass from a base-64 encoded string.override
- 
  tryFromJson(Map< String, dynamic> ? json) → StakeAccount?
- 
  Creates an instance of thisclass from the constructor parameters defined in thejsonobject.override