algokey Command Line Utility

algokey

Stand-alone command line utility used to generate, import, export keys and to sign transactions.

Synopsis

Collection of commands to support Algorand key operations.

algokey [flags]

Options

  -h, --help   help for algokey

Commands

algokey export

This command requires a private key file and exports the mnemonic and the public key.

Synopsis

Export key file to mnemonic and public key.

algokey export [flags]

Options

  -h, --help   help for multisig
  -f, --keyfile string   Private key filename
  -p, --pubkeyfile string   Public key filename​​​

algokey generate

This command generates Algorand keys. You can supply filenames for both the private and public keys. The private key mnemonic is also returned, which will allow you to recover the key elsewhere or at a later date. The mnemonic should be secured in safe storage.

Synopsis

Generate Key.

algokey generate [flags]

Options

  -h, --help   help for multisig
  -f, --keyfile string   Private key filename
  -p, --pubkeyfile string   Public key filename​​​

algokey import

This command takes a mnemonic string and generates the corresponding private key.

Synopsis

Import key file from mnemonic.

algokey import [flags]

Options

  -h, --help   help for multisig
  -f, --keyfile string   Private key filename
  -m, --mnemonic string   Private key mnemonic​​​

algokey multisig

This command is used to sign a multi-signature transaction using either the mnemonic or a private key. The command requires that you pass in a transactions file, output file and either a mnemonic or key file to sign with. The transaction file can be created using goal clerk commands.

Synopsis

Add a multisig signature to transactions from a file using a private key.

algokey multisig [flags]

Options

  -h, --help              help for multisig
  -k, --keyfile string    Private key filename
  -m, --mnemonic string   Private key mnemonic
  -o, --outfile string    Transaction output filename
  -t, --txfile string     Transaction input filename​​​

algokey sign

This command is used to sign a transaction using either the mnemonic or a private key. The command requires that you pass in a transactions file, output file and either a mnemonic or key file to sign with. The transaction file can be created using goal clerk commands.

Synopsis

Sign transactions from a file using a private key.

algokey sign [flags]

Options

  -h, --help              help for sign
  -k, --keyfile string    Private key filename
  -m, --mnemonic string   Private key mnemonic
  -o, --outfile string    Transaction output filename
  -t, --txfile string     Transaction input filename​​​