snap_getState
Description
snap_getState gets the state of the Snap.
Parameters
key
string | undefinedThe key of the state to retrieve. If not provided, the entire
state is retrieved. This may contain Lodash-style path syntax, e.g.,
a.b.c, with the exception of array syntax.
encrypted
boolean | undefinedWhether to use the separate encrypted state, or the unencrypted state. Defaults to the encrypted state. Encrypted state can only be used if the client is unlocked, while unencrypted state can be used whether the client is locked or unlocked.
Returns
Json
The result returned by the snap_getState method.