Skip to content

ensureBudget

Algorand TypeScript


Algorand TypeScript / index / ensureBudget

ensureBudget(requiredBudget, feeSource): void

Defined in: util.ts:153

Ensure the available op code budget is greater than or equal to requiredBudget.

This is done by adding AppCall itxns to the group to increase the available budget. These itxns must be paid for by the caller or the application.

uint64

The total required budget

OpUpFeeSource = OpUpFeeSource.GroupCredit

Which source to withdraw txn fees from.

void