SolanaRPCProgramSubscribe class
Subscribe to a program to receive notifications when the lamports or data for an account owned by the given program changes https://solana.com/docs/rpc/websocket/programsubscribe
- Inheritance
-
- Object
- LoockupLedgerRequest
- SolanaRPCRequest<
int> - SolanaRPCProgramSubscribe
Constructors
-
SolanaRPCProgramSubscribe({required SolAddress programId, List<
RPCFilterConfig> ? filters, 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
-
filters
→ List<
RPCFilterConfig> ? -
filter results
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- method → String
-
programSubscribe
no setteroverride
- minContextSlot → MinContextSlot?
-
The minimum context slot for the request.
finalinherited
- programId → SolAddress
-
Pubkey of the program_id
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- 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) → int -
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