Algorand TypeScript
    Preparing search index...

    Type Alias GlobalStateOptions<ValueType>

    Options for declaring a global state field

    type GlobalStateOptions<ValueType> = {
        initialValue?: ValueType;
        key?: bytes | string;
    }

    Type Parameters

    • ValueType
    Index

    Properties

    Properties

    initialValue?: ValueType

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

    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