@polkadot/types
Version:
Implementation of the Parity codec
37 lines (36 loc) • 850 B
JavaScript
export const rpc = {
localStorageGet: {
description: 'Get offchain local storage under given key and prefix',
isUnsafe: true,
params: [
{
name: 'kind',
type: 'StorageKind'
},
{
name: 'key',
type: 'Bytes'
}
],
type: 'Option<Bytes>'
},
localStorageSet: {
description: 'Set offchain local storage under given key and prefix',
isUnsafe: true,
params: [
{
name: 'kind',
type: 'StorageKind'
},
{
name: 'key',
type: 'Bytes'
},
{
name: 'value',
type: 'Bytes'
}
],
type: 'Null'
}
};