Skip to Content

selectTxByKey()

selectTxByKey<T>(transactionsPool, key): T | undefined

Defined in: store/transactionsSelectors.ts:38 

Returns the transaction stored under a txKey.

Type Parameters

T

T extends Transaction

The application transaction type.

Parameters

transactionsPool

TransactionPool<T>

The transaction pool of the store.

key

string

The txKey of the transaction.

Returns

T | undefined

The transaction, or undefined if the pool has no such key.

Last updated on