getKmdWalletAccount
getKmdWalletAccount(
walletAccount,algod,kmdClient?):Promise<Account|undefined>
Defined in: algokit-utils-ts/src/localnet/get-kmd-wallet-account.ts:27
Parameters
Section titled “Parameters”walletAccount
Section titled “walletAccount”The details of the wallet, with:
name: The name of the wallet to retrieve an account frompredicate: An optional filter to use to find the account (otherwise it will return a random account from the wallet)
string
predicate?
Section titled “predicate?”(account) => boolean
AlgodClient
An algod client
kmdClient?
Section titled “kmdClient?”KmdClient
A KMD client, if not specified then a default KMD client will be loaded from environment variables
Returns
Section titled “Returns”Promise<Account | undefined>
Example
Section titled “Example”Get default funded account in a LocalNet
const defaultDispenserAccount = await getKmdWalletAccount(algod, 'unencrypted-default-wallet', a => a.status !== 'Offline' && a.amount > 1_000_000_000)