GlobalStateOptions
@algorandfoundation/algorand-typescript
@algorandfoundation/algorand-typescript / index / GlobalStateOptions
Type Alias: GlobalStateOptions<ValueType>
Section titled “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
Section titled “Type Parameters”• ValueType
Type declaration
Section titled “Type declaration”initialValue?
Section titled “initialValue?”
optionalinitialValue:ValueType
An initial value to assign to this global state field when the application is created
optionalkey:bytes|string
The key to be used for this global state field.
Defaults to the name of the property this proxy is assigned to