diff --git a/CHANGELOG.md b/CHANGELOG.md index 01f62ca0f8bc..4597b8440c4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ Changes: +- Added `childstate_getKeysPaged` RPC - Align static metadata with latest Substrate diff --git a/packages/types/src/interfaces/childstate/definitions.ts b/packages/types/src/interfaces/childstate/definitions.ts index 7d7dc7b305e4..36d10287407c 100644 --- a/packages/types/src/interfaces/childstate/definitions.ts +++ b/packages/types/src/interfaces/childstate/definitions.ts @@ -28,6 +28,36 @@ export default { ], type: 'Vec' }, + getKeysPaged: { + alias: ['childstate_getKeysPagedAt'], + description: 'Returns the keys with prefix from a child storage with pagination support', + params: [ + { + name: 'childKey', + type: 'PrefixedStorageKey' + }, + { + name: 'prefix', + type: 'StorageKey' + }, + { + name: 'count', + type: 'u32' + }, + { + name: 'startKey', + type: 'StorageKey', + isOptional: true + }, + { + name: 'at', + type: 'Hash', + isHistoric: true, + isOptional: true + } + ], + type: 'Vec' + }, getStorage: { description: 'Returns a child storage entry at a specific block state', params: [