selectTxByKey()
selectTxByKey<
T>(transactionsPool,key):T|undefined
Defined in: packages/pulsar-core/src/store/transactionsSelectors.ts:35
Selects a single transaction from the pool by its unique key (txKey).
Type Parameters
T
T extends Transaction
The transaction type.
Parameters
transactionsPool
The entire transaction pool from the store.
key
string
The txKey of the transaction to retrieve.
Returns
T | undefined
The transaction object if found, otherwise undefined.
Last updated on