Skip to content

LocalState

@algorandfoundation/algorand-typescript


@algorandfoundation/algorand-typescript / index / LocalState

Type Alias: LocalState()<ValueType>

LocalState<ValueType>: (account) => LocalStateForAccount<ValueType>

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

A proxy for manipulating a local state field for any account

Type Parameters

ValueType

Gets the LocalState proxy for a specific account

Parameters

account

Account

The account to read or write state for. This account must be opted into the contract

Returns

LocalStateForAccount<ValueType>