The transaction-get-raw command in Mintlayer is utilized to retrieve the raw, hex-encoded representation of a specific transaction from the wallet. This command is particularly useful for users who need the raw transaction data for advanced purposes like manual verification, broadcasting via alternative methods, or other technical analyses.
transaction-get-raw <TRANSACTION_ID>
<TRANSACTION_ID>: The ID of the transaction you wish to retrieve in its raw form, provided as a hex-encoded string.-h, --help: Displays help information about the transaction-get-raw command.Retrieving a Raw Transaction:
To get the raw hex-encoded data of a specific transaction, use its transaction ID as follows:
transaction-get-raw c6aebb7caaa20a4962cacf511526c69d145dcdd7126e30dc903fec6d8e53bab4
Upon execution, it will output the raw transaction data:
01000400004c8eeddd95881c206fea079b81f1dcb1646e353450faf1214427bc57c2805763010000000800000700e87648170121ad21ace4af262e5c57c6b7e7a08b5f4287a31100000fd2cb5f1651951f012c1c0c64d1a355e180aafa4cb982e6d66bb2ea4d
This string represents the entire transaction in its raw hexadecimal format.