Add offchain_localStorageClear RPC method (#6070)

This commit is contained in:
Alisher A. Khassanov
2025-01-23 20:24:49 -05:00
committed by GitHub
parent beca93e7a9
commit 97fe4ea226
6 changed files with 23 additions and 0 deletions
@@ -404,6 +404,10 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
version: AugmentedRpc<() => Observable<Text>>;
};
offchain: {
/**
* Clear offchain local storage under given key and prefix
**/
localStorageClear: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Null>>;
/**
* Get offchain local storage under given key and prefix
**/