EpochInfo class
Epoch Info
- Inheritance
-
- Object
- BorshObject
- EpochInfo
Constructors
- EpochInfo.new({required u64 absoluteSlot, required u64 blockHeight, required u64 epoch, required u64 slotIndex, required u64 slotsInEpoch, required u64? transactionCount})
-
Information about an epoch.
const
- EpochInfo.fromBorshBase64(String encoded)
-
Creates an instance of
this
class from a base-64 encoded string.factory -
EpochInfo.fromJson(Map<
String, dynamic> json) -
Creates an instance of
this
class from the constructor parameters defined in thejson
object.factory
Properties
- absoluteSlot → u64
-
The epoch slot.
final
- blockHeight → u64
-
The epoch block height.
final
- borshSchema → BorshSchema
-
Maps
this
class' properties to codecs.no setteroverride - epoch → u64
-
The epoch.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slotIndex → u64
-
The slot relative to the start of epoch.
final
- slotsInEpoch → u64
-
The number of slots in epoch.
final
- transactionCount → u64?
-
The total number of transactions processed without error since genesis up to epoch.
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 → BorshStructCodec
-
The encoders/decoders of
this
class' properties.final
Static Methods
-
fromBorsh(
Iterable< int> buffer) → EpochInfo -
Creates an instance of
this
class from a buffer.override -
tryFromBorsh(
Iterable< int> ? buffer) → EpochInfo? -
Creates an instance of
this
class from a buffer.override -
tryFromBorshBase64(
String? encoded) → EpochInfo? -
Creates an instance of
this
class from a base-64 encoded string.override -
tryFromJson(
Map< String, dynamic> ? json) → EpochInfo? -
Creates an instance of
this
class from the constructor parameters defined in thejson
object.override