SubscriptionClient class
Provides a websocket based connection to Solana.
- Available Extensions
Constructors
- SubscriptionClient(Uri uri, {Duration? pingInterval, Duration? connectTimeout})
- SubscriptionClient.connect(String url)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
accountSubscribe(
String address, {Commitment? commitment, Encoding encoding = Encoding.jsonParsed}) → Stream< Account> -
Subscribe to an account with
address
to receive notifications when the lamports or data for a given account public key changes. -
allMessages(
) → Stream< SubscriptionMessage> - Subscribe to all incoming messages.
-
close(
) → void - Dispose this object and cancel any existing subscription.
-
logsSubscribe(
LogsFilter filter, {Commitment? commitment}) → Stream< Logs> - Subscribe to transaction logging.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
programSubscribe(
String programId, {Encoding encoding = Encoding.jsonParsed, List< ProgramFilter> ? filters, Commitment? commitment}) → Stream - Subscribe to a program to receive notifications when the lamports or data for a given account owned by the program changes.
-
rootSubscribe(
) → Stream< int> - Subscribe to receive notification anytime a new root is set by the validator.
-
signatureSubscribe(
String signature, {Commitment? commitment}) → Stream< OptionalError> - Subscribe to a transaction signature to receive notification when the transaction is confirmed On signatureNotification, the subscription is automatically cancelled.
-
slotSubscribe(
) → Stream< Slot> - Subscribe to receive notification anytime a slot is processed by the validator.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited