packages/types/src/interfaces/engine/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 = {
createBlock: {
description: 'Instructs the manual-seal authorship task to create a new block',
params: [
{
name: 'createEmpty',
type: 'bool'
},
{
name: 'finalize',
type: 'bool'
},
{
isOptional: true,
name: 'parentHash',
type: 'BlockHash'
}
],
type: 'CreatedBlock'
},
finalizeBlock: {
description: 'Instructs the manual-seal authorship task to finalize a block',
params: [
{
name: 'hash',
type: 'BlockHash'
},
{
isOptional: true,
name: 'justification',
type: 'Justification'
}
],
type: 'bool'
}
};