wallet:sign
Use this command to sign an unsigned transaction. You do not need to specify the account, the RPC will iterate through all accounts to find the one that can sign the transaction. You can produce an unsigned transaction by running ironfish wallet:send
/ ironfish wallet:mint
/ ironfish wallet:burn
with the --unsignedTransaction
flag.
> ironfish wallet:sign
Enter the unsigned transaction: 0101000000000000000200000000000000000000000000000000000000000000... Signed Transaction: 01010000000000000002... Hash: ef016ab42dc1b738e249b0ef757d97dd1b417539b723b2e3254572115d10224b Fee: $IRON 0.00000001
You can post the transaction to the Ironfish network either using the --broadcast
flag or you can use the ironfish wallet:transaction:add
command to add the signed transaction to your wallet.
Flags
Flag | Description | Default |
---|---|---|
-u, --unsignedTransaction | Unsigned transaction to sign. | |
--ledger | Sign with a ledger device | false |
--broadcast | Broadcast the transaction to the network after signing | false |
--watch | Wait for the transaction to be confirmed. If you use --watch you must also use --broadcast | false |