InflationReward class

Inflation Reward

Inheritance

Constructors

InflationReward.new({required u64 epoch, required u64 effectiveSlot, required u64 amount, required u64 postBalance, required u8? commission})
Inflation / staking reward.
const
InflationReward.fromJson(Map<String, dynamic> json)
Creates an instance of this class from the constructor parameters defined in the json object.
factory

Properties

amount u64
The reward amount in lamports.
final
commission u8?
The vote account commission when the reward was credited.
final
effectiveSlot u64
The slot in which the rewards are effective.
final
epoch u64
The epoch for which the reward occured.
final
hashCode int
The hash code for this object.
no setterinherited
postBalance u64
The balance of the account in lamports, post the reward.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
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 Methods

tryFromJson(Map<String, dynamic>? json) InflationReward?
Creates an instance of this class from the constructor parameters defined in the json object.
override