ValidatorListHeader class

Validator List Header

Inheritance

Constructors

ValidatorListHeader({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 → u64
The hash code for this object.
no setterinherited
maxValidators → u64
Maximum allowable number of validators
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

borshSize() → u64
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