SolanaRPCGetBlock class

Returns identity and transaction information about a confirmed block in the ledger https://solana.com/docs/rpc/http/getblock

Inheritance

Constructors

SolanaRPCGetBlock({required int slot, RPCTransactionDetails? transactionDetails = RPCTransactionDetails.full, int? maxSupportedTransactionVersion = 0, bool? rewards, Commitment? commitment, SolanaRPCEncoding? encoding})
const

Properties

commitment Commitment?
The desired commitment level for the request.
finalinherited
encoding SolanaRPCEncoding?
The encoding format of the data.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
maxSupportedTransactionVersion int?
the max transaction version to return in responses.
final
method String
getBlock
no setteroverride
minContextSlot MinContextSlot?
The minimum context slot for the request.
finalinherited
rewards bool?
whether to populate the rewards array. If parameter not provided, the default includes rewards.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slot int
slot number, as u64 integer
final
transactionDetails RPCTransactionDetails?
level of transaction detail to return
final
validate String?
A validation property (not used in this implementation).
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onResonse(dynamic result) VersionedBlockResponse
Converts a dynamic response to the generic type T.
override
toJson() List
Converts the request to JSON format.
override
toRequest(int requestId) SolanaRequestDetails
Converts the request parameters to a SolanaRequestDetails object.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited