-
Notifications
You must be signed in to change notification settings - Fork 28
submittransaction Command Guide
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.
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.
To submit a transaction, use the following command:
submittransaction <TRANSACTION>
-
<TRANSACTION>
: The hex-encoded representation of the transaction you want to submit.
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.
- 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.
-
-h, --help
: Displays the help message for thesubmittransaction
command.