Skip to content

EnsureFundedParams

@algorandfoundation/algokit-utils / types/transfer / EnsureFundedParams

types/transfer.EnsureFundedParams

Deprecated

Parameters for ensureFunded call.

accountToFund: string | SendTransactionFrom

The account to fund

src/types/transfer.ts:40


Optional atc: AtomicTransactionComposer

An optional AtomicTransactionComposer to add the transaction to, if specified then skipSending: undefined has the same effect as skipSending: true

SendTransactionParams.atc

src/types/transaction.ts:36


Optional fee: AlgoAmount

The flat fee you want to pay, useful for covering extra fees in a transaction group or app call

SendTransactionParams.fee

src/types/transaction.ts:40


Optional fundingSource: SendTransactionFrom | TestNetDispenserApiClient

The account to use as a funding source, will default to using the dispenser account returned by algokit.getDispenserAccount

src/types/transfer.ts:42


Optional lease: string | Uint8Array

An (optional) transaction lease to apply

src/types/transfer.ts:52


Optional maxFee: AlgoAmount

The maximum fee that you are happy to pay (default: unbounded) - if this is set it’s possible the transaction could get rejected during network congestion

SendTransactionParams.maxFee

src/types/transaction.ts:42


Optional maxRoundsToWaitForConfirmation: number

The maximum number of rounds to wait for confirmation, only applies if skipWaiting is undefined or false, default: wait up to 5 rounds

SendTransactionParams.maxRoundsToWaitForConfirmation

src/types/transaction.ts:44


Optional minFundingIncrement: AlgoAmount

When issuing a funding amount, the minimum amount to transfer (avoids many small transfers if this gets called often on an active account)

src/types/transfer.ts:46


minSpendingBalance: AlgoAmount

The minimum balance of Algo that the account should have available to spend (i.e. on top of minimum balance requirement)

src/types/transfer.ts:44


Optional note: TransactionNote

The (optional) transaction note, default: “Funding account to meet minimum requirement”

src/types/transfer.ts:50


Optional populateAppCallResources: boolean

Whether to use simulate to automatically populate app call resources in the txn objects. Defaults to true when there are app calls in the group.

SendTransactionParams.populateAppCallResources

src/types/transaction.ts:46


Optional skipSending: boolean

Whether to skip signing and sending the transaction to the chain (default: transaction signed and sent to chain, unless atc specified) and instead just return the raw transaction, e.g. so you can add it to a group of transactions

SendTransactionParams.skipSending

src/types/transaction.ts:32


Optional skipWaiting: boolean

Whether to skip waiting for the submitted transaction (only relevant if skipSending is false or unset)

SendTransactionParams.skipWaiting

src/types/transaction.ts:34


Optional suppressLog: boolean

Whether to suppress log messages from transaction send, default: do not suppress

SendTransactionParams.suppressLog

src/types/transaction.ts:38


Optional transactionParams: SuggestedParams

Optional transaction parameters

src/types/transfer.ts:48