AlgorandTestAutomationContext
@algorandfoundation/algokit-utils / types/testing / AlgorandTestAutomationContext
types/testing.AlgorandTestAutomationContext
Test automation context.
Table of contents
Properties
- algod
- algorand
- generateAccount
- indexer
- kmd
- testAccount
- transactionLogger
- waitForIndexer
- waitForIndexerTransaction
Properties
algod
• algod: AlgodClient
Algod client instance that will log transactions in transactionLogger
Defined in
algorand
• algorand: AlgorandClient
An AlgorandClient instance loaded with the current context, including testAccount and any generated accounts loaded as signers
Defined in
generateAccount
• generateAccount: (params
: GetTestAccountParams
) => Promise
<Address
& default
& TransactionSignerAccount
>
Generate and fund an additional ephemerally created account
Type declaration
▸ (params
): Promise
<Address
& default
& TransactionSignerAccount
>
Parameters
Name | Type |
---|---|
params | GetTestAccountParams |
Returns
Promise
<Address
& default
& TransactionSignerAccount
>
Defined in
indexer
• indexer: IndexerClient
Indexer client instance
Defined in
kmd
• kmd: KmdClient
KMD client instance
Defined in
testAccount
• testAccount: Address
& TransactionSignerAccount
& default
Default, funded test account that is ephemerally created
Defined in
transactionLogger
• transactionLogger: TransactionLogger
Transaction logger that will log transaction IDs for all transactions issued by algod
Defined in
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
waitForIndexerTransaction
• waitForIndexerTransaction: (transactionId
: string
) => Promise
<TransactionResponse
>
Wait for the indexer to catch up with the given transaction ID
Type declaration
▸ (transactionId
): Promise
<TransactionResponse
>
Parameters
Name | Type |
---|---|
transactionId | string |
Returns
Promise
<TransactionResponse
>