Skip to content

StateTotals

@algorandfoundation/algorand-typescript


@algorandfoundation/algorand-typescript / index / <internal> / StateTotals

StateTotals: object

Defined in: packages/algo-ts/src/base-contract.ts:31

Options class to manually define the total amount of global and local state contract will use.

This is not required when all state is assigned to this., but is required if a contract dynamically interacts with state via AppGlobal.getBytes etc, or if you want to reserve additional state storage for future contract updates, since the Algorand protocol doesn’t allow increasing them after creation.

optional globalBytes: number

optional globalUints: number

optional localBytes: number

optional localUints: number