SolanaRequestBlockSubscribe class

Subscribe to receive notification anytime a new block is confirmed or finalized. https://solana.com/docs/rpc/websocket/blocksubscribe

Inheritance

Constructors

SolanaRequestBlockSubscribe.new({required SubscribeBlockFilter filter, BlockSubscribeTransactionDetails? transactionDetails, bool? showRewards, bool? maxSupportedTransactionVersion, Commitment? commitment, SolanaRequestEncoding? encoding = SolanaRequestEncoding.base64})
const

Properties

commitment Commitment?
The desired commitment level for the request.
finalinherited
encoding SolanaRequestEncoding?
The encoding format of the data.
finalinherited
filter SubscribeBlockFilter
filter criteria for the logs to receive results by account type
final
hashCode int
The hash code for this object.
no setterinherited
maxSupportedTransactionVersion bool?
the max transaction version to return in responses.
final
method String
blockSubscribe
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
showRewards bool?
whether to populate the rewards array. If parameter not provided, the default includes rewards.
final
transactionDetails BlockSubscribeTransactionDetails?
level of transaction detail to return
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(int result) int
inherited
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