ValidatorListHeader class
Validator List Header
- Inheritance
-
- Object
- BorshObject
- ValidatorListHeader
Constructors
- ValidatorListHeader.new({required AccountType accountType, required int maxValidators})
-
Helper type to deserialize just the start of a ValidatorList.
const
- ValidatorListHeader.fromAccountInfo(AccountInfo info)
-
factory
-
ValidatorListHeader.fromJson(Map<
String, dynamic> json) -
factory
Properties
- accountType → AccountType
-
Account type, must be ValidatorList currently
final
- borshSchema → BorshSchema
-
Maps
this
class' properties to codecs.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
- maxValidators → int
-
Maximum allowable number of validators
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
-
no setter