Skip to content

getKmdWalletAccount

getKmdWalletAccount(walletAccount, algod, kmdClient?): Promise<Account | undefined>

Defined in: algokit-utils-ts/src/localnet/get-kmd-wallet-account.ts:27

The details of the wallet, with:

  • name: The name of the wallet to retrieve an account from
  • predicate: An optional filter to use to find the account (otherwise it will return a random account from the wallet)

string

(account) => boolean

AlgodClient

An algod client

KmdClient

A KMD client, if not specified then a default KMD client will be loaded from environment variables

Promise<Account | undefined>

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
)