Skip to content

AlgorandTestAutomationContext

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

types/testing.AlgorandTestAutomationContext

Test automation context.

Table of contents

Properties

Properties

algod

algod: AlgodClient

Algod client instance that will log transactions in transactionLogger

Defined in

src/types/testing.ts:22


algorand

algorand: AlgorandClient

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

Defined in

src/types/testing.ts:20


generateAccount

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

Generate and fund an additional ephemerally created account

Type declaration

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

Parameters
NameType
paramsGetTestAccountParams
Returns

Promise<Address & default & TransactionSignerAccount>

Defined in

src/types/testing.ts:32


indexer

indexer: IndexerClient

Indexer client instance

Defined in

src/types/testing.ts:24


kmd

kmd: KmdClient

KMD client instance

Defined in

src/types/testing.ts:26


testAccount

testAccount: Address & TransactionSignerAccount & default

Default, funded test account that is ephemerally created

Defined in

src/types/testing.ts:30


transactionLogger

transactionLogger: TransactionLogger

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

Defined in

src/types/testing.ts:28


waitForIndexer

waitForIndexer: () => Promise<void>

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

Type declaration

▸ (): Promise<void>

Returns

Promise<void>

Defined in

src/types/testing.ts:34


waitForIndexerTransaction

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

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

Type declaration

▸ (transactionId): Promise<TransactionResponse>

Parameters
NameType
transactionIdstring
Returns

Promise<TransactionResponse>

Defined in

src/types/testing.ts:36