AlgorandTestAutomationContext
Defined in: algokit-utils-ts/src/types/testing.ts:18
Test automation context.
Properties
Section titled “Properties”algod:
AlgodClient
Defined in: algokit-utils-ts/src/types/testing.ts:22
Algod client instance that will log transactions in transactionLogger
algorand
Section titled “algorand”algorand:
AlgorandClient
Defined in: algokit-utils-ts/src/types/testing.ts:20
An AlgorandClient instance loaded with the current context, including testAccount and any generated accounts loaded as signers
generateAccount
Section titled “generateAccount”generateAccount: (
params) =>Promise<Address&Account&TransactionSignerAccount>
Defined in: algokit-utils-ts/src/types/testing.ts:32
Generate and fund an additional ephemerally created account
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<Address & Account & TransactionSignerAccount>
indexer
Section titled “indexer”indexer:
IndexerClient
Defined in: algokit-utils-ts/src/types/testing.ts:24
Indexer client instance
kmd:
KmdClient
Defined in: algokit-utils-ts/src/types/testing.ts:26
KMD client instance
testAccount
Section titled “testAccount”testAccount:
Address&TransactionSignerAccount&Account
Defined in: algokit-utils-ts/src/types/testing.ts:30
Default, funded test account that is ephemerally created
transactionLogger
Section titled “transactionLogger”transactionLogger:
TransactionLogger
Defined in: algokit-utils-ts/src/types/testing.ts:28
Transaction logger that will log transaction IDs for all transactions issued by algod
waitForIndexer
Section titled “waitForIndexer”waitForIndexer: () =>
Promise<void>
Defined in: algokit-utils-ts/src/types/testing.ts:34
Wait for the indexer to catch up with all transactions logged by transactionLogger
Returns
Section titled “Returns”Promise<void>
waitForIndexerTransaction
Section titled “waitForIndexerTransaction”waitForIndexerTransaction: (
transactionId) =>Promise<TransactionResponse>
Defined in: algokit-utils-ts/src/types/testing.ts:36
Wait for the indexer to catch up with the given transaction ID
Parameters
Section titled “Parameters”transactionId
Section titled “transactionId”string
Returns
Section titled “Returns”Promise<TransactionResponse>