getState

declare function getState(stateName: StateName): IStateSchema<any>;

Retrieves a state schema by its name from the swarm's state schema service. Logs the operation if logging is enabled in the global configuration.

Parameter Description
stateName The name of the state to retrieve.