Skip to Content
API referencePulsar CoreSrcComponentsselectAllTransactions()

@tuwaio/pulsar-core-monorepo


selectAllTransactions()

selectAllTransactions<T>(transactionsPool): T[]

Defined in: packages/pulsar-core/src/store/transactionsSelectors.ts:14 

Selects all transactions from the pool and sorts them by their creation timestamp in ascending order.

Type Parameters

T

T extends Transaction

The transaction type.

Parameters

transactionsPool

TransactionPool<T>

The entire transaction pool from the store.

Returns

T[]

An array of all transactions, sorted chronologically.

Last updated on