SolanaRequestGetLeaderSchedule class
Returns the leader schedule for an epoch https://solana.com/docs/rpc/http/getleaderschedule
- Inheritance
-
- Object
- BaseServiceRequest<
LeaderSchedule, Map< String, dynamic> , SolanaRequestDetails> - SolanaRequest<
LeaderSchedule, Map< String, dynamic> > - SolanaRequestGetLeaderSchedule
Constructors
- SolanaRequestGetLeaderSchedule.new({int? slot, String? identity, Commitment? commitment})
-
const
Properties
- commitment → Commitment?
-
The desired commitment level for the request.
finalinherited
- encoding → SolanaRequestEncoding?
-
The encoding format of the data.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- identity → String?
-
Only return results for this validator identity (base-58 encoded)
final
- method → String
-
getLeaderSchedule
no setteroverride
- minContextSlot → MinContextSlot?
-
The minimum context slot for the request.
finalinherited
- requestType → RequestServiceType
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slot → int?
-
Fetch the leader schedule for the epoch that corresponds to the provided slot.
If unspecified, the leader schedule for the current epoch is fetched
final
Methods
-
buildRequest(
int requestID) → SolanaRequestDetails -
Converts the request parameters to a SolanaRequestDetails object.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onResonse(
Map< String, dynamic> result) → LeaderSchedule -
override
-
toJson(
) → List -
Converts the request parameters to a JSON representation.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited