StakeAccountInfo class

Stake Account Info

Inheritance

Constructors

StakeAccountInfo.new({required StakeState state, required StakeMeta meta, required Stake stake})
Stake Account Information.
const
StakeAccountInfo.fromAccountInfo(AccountInfo info)
Creates an instance of this class from an account info.
factory
StakeAccountInfo.fromBorshBase64(String encoded)
Creates an instance of this class from a base-64 encoded string.
factory
StakeAccountInfo.fromJson(Map<String, dynamic> json)
Creates an instance of this class from the constructor parameters defined in the json object.
factory

Properties

borshSchema BorshSchema
Maps this class' properties to codecs.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
meta StakeMeta
The mint address (base-58) associated with this account.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stake Stake
The owner address (base-58) of this account.
final
state StakeState
Stake account type.
final

Methods

borshSize() int
Returns the serialized byte length of this instance.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBorsh() Iterable<int>
Serializes this instance into a buffer.
inherited
toJson() Map<String, dynamic>
Serialises this class 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 BorshStructSizedCodec
The encoders/decoders of this class' properties.
final

Static Methods

fromBorsh(Iterable<int> buffer) StakeAccountInfo
Creates an instance of this class from a buffer.
override
tryFromAccountInfo(AccountInfo? info) StakeAccountInfo?
Creates an instance of this class from an account info.
tryFromBorsh(Iterable<int>? buffer) StakeAccountInfo?
Creates an instance of this class from a buffer.
override
tryFromBorshBase64(String? encoded) StakeAccountInfo?
Creates an instance of this class from a base-64 encoded string.
override
tryFromJson(Map<String, dynamic>? json) StakeAccountInfo?
Creates an instance of this class from the constructor parameters defined in the json object.
override