Reward class
Reward
- Inheritance
-
- Object
- Serializable
- Reward
Constructors
- Reward.new({required String pubkey, required i64 lamports, required u64 postBalance, required RewardType? rewardType, required u8? commission})
-
Rewards
const
-
Reward.fromJson(Map<
String, dynamic> json) -
Creates an instance of
this
class from the constructor parameters defined in thejson
object.factory
Properties
- commission → u8?
-
The vote account commission when the reward was credited (only present for RewardType.voting
and RewardType.staking).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lamports → i64
-
The number of reward lamports credited or debited by the account.
final
- postBalance → u64
-
The account balance in lamports after the reward was applied.
final
- pubkey → String
-
The public key as a base-58 encoded string, of the account that received the reward.
final
- rewardType → RewardType?
-
The reward type.
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