Skip to content

TransactionLogger

Defined in: src/testing/transaction-logger.ts:11

Allows you to keep track of Algorand transaction IDs by wrapping an AlgodClient in a proxy. Useful for automated tests.

new TransactionLogger(): TransactionLogger

TransactionLogger

get sentTransactionIds(): readonly string[]

Defined in: src/testing/transaction-logger.ts:26

The list of transaction IDs that has been logged thus far.

readonly string[]

capture(algod): AlgodClient

Defined in: src/testing/transaction-logger.ts:53

Return a proxy that wraps the given AlgodClient with this transaction logger.

AlgodClient

The AlgodClient to wrap

AlgodClient

The wrapped AlgodClient, any transactions sent using this algod instance will be logged by this transaction logger


clear(): void

Defined in: src/testing/transaction-logger.ts:33

Clear all logged IDs.

void


logRawTransaction(signedTransactions): void

Defined in: src/testing/transaction-logger.ts:40

The method that captures raw transactions and stores the transaction IDs.

Uint8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike>[]

void


waitForIndexer(indexer): Promise<void>

Defined in: src/testing/transaction-logger.ts:58

Wait until all logged transactions IDs appear in the given Indexer.

IndexerClient

Promise<void>