packages/types/src/interfaces/syncstate/rpc.ts
// Copyright 2017-2024 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { DefinitionsRpc } from '../../types/index.js';
export const rpc: DefinitionsRpc = {
genSyncSpec: {
description: 'Returns the json-serialized chainspec running the node, with a sync state.',
endpoint: 'sync_state_genSyncSpec',
params: [
{
name: 'raw',
type: 'bool'
}
],
type: 'Json'
}
};