signatureSubscribe method
Subscribe to a transaction signature to receive notification when the transaction is confirmed On signatureNotification, the subscription is automatically cancelled.
Returns a Stream that can be used to listen for events. By cancelling
subscription returned by the Stream.listen() method of this stream
client will automatically send signatureUnsubscribe message;
For commitment parameter description see this document.
Commitment.processed is not supported as commitment.
Implementation
Stream<OptionalError> signatureSubscribe(
String signature, {
Commitment? commitment,
}) =>
_subscribe<OptionalError>(
'signature',
params: <dynamic>[
signature,
if (commitment != null)
<String, String>{
'commitment': commitment.value,
},
],
singleShot: true,
);