TransactionManagement class

A class for managing batch transaction submission for a single account via a background TransactionWorker.

The worker's events are re-exposed as a broadcast Stream of TransactionWorkerEvents.

Constructors

TransactionManagement(AptosConfig config)
Initializes a new instance of the TransactionManagement namespace with the provided configuration.

Properties

account ↔ Account
The account the worker is currently sending transactions for. Set by forSingleAccount.
getter/setter pair
config → AptosConfig
The configuration settings for the Aptos client.
final
events → Stream<TransactionWorkerEvent>
A broadcast stream of the events fired by the underlying transaction worker.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transactionWorker ↔ TransactionWorker
The transaction worker doing the batching. Set by forSingleAccount.
getter/setter pair

Methods

forSingleAccount({required Account sender, required List<InputGenerateTransactionPayloadData> data, InputGenerateTransactionOptions? options}) → void
Send batch transactions for a single account.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
on(TransactionWorkerEventsEnum name) → Stream<TransactionWorkerEvent>
A broadcast stream filtered to a single event name.
toString() → String
A string representation of this object.
inherited

Operators

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