Skip to content

generateblock Command Guide

Enrico Rubboli edited this page Sep 4, 2023 · 2 revisions

The generateblock command is used to manually generate a block in the Mintlayer blockchain. You can specify which transactions to include in the block. If no transactions are specified (i.e., None), the block will be generated with available transactions from the mempool.

Usage

To generate a block with specific transactions, use the following command:

generateblock [TRANSACTIONS]...

Arguments

  • [TRANSACTIONS]...: A list of transaction hashes you want to include in the block. If not specified, the block will be generated with transactions available in the mempool.

Output

Upon successful execution, the command will return details of the generated block.

Options

  • -h, --help: Displays the help message for the generateblock command.
Clone this wiki locally