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
@@ -4,6 +4,21 @@
import type { DefinitionsRpc } from '../../types/index.js';
export const rpc: DefinitionsRpc = {
localStorageClear: {
description: 'Clear offchain local storage under given key and prefix',
isUnsafe: true,
params: [
{
name: 'kind',
type: 'StorageKind'
},
{
name: 'key',
type: 'Bytes'
}
],
type: 'Null'
},
localStorageGet: {
description: 'Get offchain local storage under given key and prefix',
isUnsafe: true,