Skip to main content
  • Snap
  • Restricted

snap_manageState

Parameters

operation

"clear" | "get" | "update"

The operation to perform on the state.

encrypted

boolean | undefined

Whether to use the separate encrypted state, or the unencrypted state. Defaults to the encrypted state.

Returns

Record<string, Json> | null

The result returned by the snap_manageState method.

If the operation is get, the result is the state. Otherwise, the result is null.