The account-sign-raw-transaction
command in Mintlayer is used to sign the inputs of a transaction that are not yet signed. This command is particularly useful for transactions in special formats, such as those serialized to hex. This hex format is commonly used in wallet functions like staking-decommission-pool-request
. Once all required signatures are added to the transaction, it can be broadcast to the network.
account-sign-raw-transaction <TRANSACTION>
<TRANSACTION>
: The transaction to be signed, provided as a hex-encoded string. Ensure that the transaction is correctly formatted and encoded.-h, --help
: Displays help information about the account-sign-raw-transaction
command.Signing a Raw Transaction:
account-sign-raw-transaction 0123abcd...
In this example, 0123abcd...
represents the hex-encoded transaction that needs to be signed. This command will sign the unsigned inputs of the provided transaction.