Skip to content

GlobalStateOptions

@algorandfoundation/algorand-typescript


@algorandfoundation/algorand-typescript / index / GlobalStateOptions

Type Alias: GlobalStateOptions<ValueType>

GlobalStateOptions<ValueType>: object

Defined in: packages/algo-ts/src/state.ts:26

Options for declaring a global state field

Type Parameters

ValueType

Type declaration

initialValue?

optional initialValue: ValueType

An initial value to assign to this global state field when the application is created

key?

optional key: bytes | string

The key to be used for this global state field.

Defaults to the name of the property this proxy is assigned to