Read the value previously stored under key, or null if absent.
— string identifier set on a previous IStorage.setItem call.
Delete the value stored under key. A no-op if the key does not exist.
— string identifier to remove.
Persist value under key. Overwrites any existing value.
— string identifier, scoped per dApp.
— value to save.
Async key-value store used by the SDK to persist protocol state (session keys, last connected wallet info, restoration markers).
In the browser the SDK uses
window.localStorageby default. In Node.js, React Native or any other environment without alocalStorageglobal the dApp MUST pass a custom implementation onTonConnectOptions.storage.Example