snap_clearState
Description
Clear the entire state of the Snap.
Parameters
encrypted
boolean | nullWhether to use the separate encrypted state, or the unencrypted state. Defaults to the encrypted state. Encrypted state can only be used if the extension is unlocked, while unencrypted state can be used whether the extension is locked or unlocked.
Example
await snap.request({
method: "snap_clearState",
params: {
encrypted: true, // Optional, defaults to true
},
});