Skip to content

ensureFunded

ensureFunded<T>(funding, algod, kmd?): Promise<EnsureFundedReturnType | undefined>

Defined in: algokit-utils-ts/src/transfer/transfer.ts:26

T extends EnsureFundedParams

T

The funding configuration of type EnsureFundedParams, including the account to fund, minimum spending balance, and optional parameters. If you set useDispenserApi to true, you must also set ALGOKIT_DISPENSER_ACCESS_TOKEN in your environment variables.

AlgodClient

An instance of the Algodv2 client.

KmdClient

An optional instance of the Kmd client.

Promise<EnsureFundedReturnType | undefined>

  • EnsureFundedReturnType if funds were transferred.
  • undefined if no funds were needed.