Skip to content

submittransaction Command Guide

Enrico Rubboli edited this page Sep 4, 2023 · 1 revision

The submittransaction command is used to manually submit a hex-encoded transaction to the mempool of the Mintlayer network. If the transaction is valid, it will be broadcasted to the entire network for potential inclusion in a future block.

Understanding Transactions

In blockchain systems, a transaction represents a transfer of value or execution of a specific operation. Before a transaction is added to a block, it first enters the mempool, a temporary storage for pending transactions. From the mempool, miners or validators select transactions to include in the next block.

Usage

To submit a transaction, use the following command:

submittransaction <TRANSACTION>

Arguments

  • <TRANSACTION>: The hex-encoded representation of the transaction you want to submit.

Output

Upon successful submission, the command will return a confirmation that the transaction has been added to the mempool and broadcasted to the network. If there's an issue with the transaction, relevant error messages will be displayed.

Important Notes

  • Ensure that the transaction adheres to the consensus rules of the Mintlayer network.
  • Always double-check the transaction details before submission to avoid unintended transfers or operations.

Options

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