Skip to content

AlgorandTestAutomationContext

@algorandfoundation/algokit-utils / types/testing / AlgorandTestAutomationContext

types/testing.AlgorandTestAutomationContext

Test automation context.

algod: AlgodClient

Algod client instance that will log transactions in transactionLogger

src/types/testing.ts:22


algorand: AlgorandClient

An AlgorandClient instance loaded with the current context, including testAccount and any generated accounts loaded as signers

src/types/testing.ts:20


generateAccount: (params: GetTestAccountParams) => Promise<Address & default & TransactionSignerAccount>

Generate and fund an additional ephemerally created account

▸ (params): Promise<Address & default & TransactionSignerAccount>

NameType
paramsGetTestAccountParams

Promise<Address & default & TransactionSignerAccount>

src/types/testing.ts:32


indexer: IndexerClient

Indexer client instance

src/types/testing.ts:24


kmd: KmdClient

KMD client instance

src/types/testing.ts:26


testAccount: Address & TransactionSignerAccount & default

Default, funded test account that is ephemerally created

src/types/testing.ts:30


transactionLogger: TransactionLogger

Transaction logger that will log transaction IDs for all transactions issued by algod

src/types/testing.ts:28


waitForIndexer: () => Promise<void>

Wait for the indexer to catch up with all transactions logged by transactionLogger

▸ (): Promise<void>

Promise<void>

src/types/testing.ts:34


waitForIndexerTransaction: (transactionId: string) => Promise<TransactionResponse>

Wait for the indexer to catch up with the given transaction ID

▸ (transactionId): Promise<TransactionResponse>

NameType
transactionIdstring

Promise<TransactionResponse>

src/types/testing.ts:36