Add offchain_localStorageClear RPC method (#6070)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user