The node-submit-transaction
command in Mintlayer is designed for submitting a transaction to the mempool. If the transaction is valid according to the network's consensus rules, it will be broadcasted to the rest of the network. This command is essential for users who wish to initiate transactions directly through their node.
node-submit-transaction <TRANSACTION>
<TRANSACTION>
: The transaction you wish to submit, provided as a hex-encoded string.-h, --help
: Displays help information about the node-submit-transaction
command.Submitting a Transaction:
To submit a transaction, you need to provide the hex-encoded data of the transaction. For example:
node-submit-transaction 0100000001abcdef... (remainder of hex-encoded transaction)
Replace the ellipsis with the complete hex-encoded data of your transaction.
After executing the command, the transaction will be submitted to the mempool. If valid, it will then be broadcasted to the network.