SolanaRequestGetBlocks class
Returns a list of confirmed blocks between two slots https://solana.com/docs/rpc/http/getblocks
- Inheritance
-
- Object
- BaseServiceRequest<
List< int> , List, SolanaRequestDetails> - SolanaRequest<
List< int> , List> - SolanaRequestGetBlocks
Constructors
- SolanaRequestGetBlocks.new({required int startSlot, int? endSlot, Commitment? commitment})
-
const
Properties
- commitment → Commitment?
-
The desired commitment level for the request.
finalinherited
- encoding → SolanaRequestEncoding?
-
The encoding format of the data.
finalinherited
- endSlot → int?
-
end_slot, as u64 integer (must be no more than 500,000 blocks higher than the start_slot)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- method → String
-
getBlocks
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
- startSlot → int
-
start_slot, as u64 integer
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(
List result) → List< int> -
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