|
|
|
@ -32,29 +32,36 @@ import ( |
|
|
|
|
var ( |
|
|
|
|
walletCommand = cli.Command{ |
|
|
|
|
Name: "wallet", |
|
|
|
|
Usage: "ethereum presale wallet", |
|
|
|
|
Subcommands: []cli.Command{ |
|
|
|
|
{ |
|
|
|
|
Action: importWallet, |
|
|
|
|
Name: "import", |
|
|
|
|
Usage: "import ethereum presale wallet", |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
Usage: "Manage Ethereum presale wallets", |
|
|
|
|
ArgsUsage: "", |
|
|
|
|
Category: "ACCOUNT COMMANDS", |
|
|
|
|
Description: ` |
|
|
|
|
|
|
|
|
|
get wallet import /path/to/my/presale.wallet |
|
|
|
|
geth wallet import /path/to/my/presale.wallet |
|
|
|
|
|
|
|
|
|
will prompt for your password and imports your ether presale account. |
|
|
|
|
It can be used non-interactively with the --password option taking a |
|
|
|
|
passwordfile as argument containing the wallet password in plaintext. |
|
|
|
|
|
|
|
|
|
`} |
|
|
|
|
`, |
|
|
|
|
Subcommands: []cli.Command{ |
|
|
|
|
{ |
|
|
|
|
Action: importWallet, |
|
|
|
|
Name: "import", |
|
|
|
|
Usage: "Import Ethereum presale wallet", |
|
|
|
|
ArgsUsage: "<keyFile>", |
|
|
|
|
Description: ` |
|
|
|
|
TODO: Please write this |
|
|
|
|
`, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
accountCommand = cli.Command{ |
|
|
|
|
Action: accountList, |
|
|
|
|
Name: "account", |
|
|
|
|
Usage: "manage accounts", |
|
|
|
|
Usage: "Manage accounts", |
|
|
|
|
ArgsUsage: "", |
|
|
|
|
Category: "ACCOUNT COMMANDS", |
|
|
|
|
Description: ` |
|
|
|
|
|
|
|
|
|
Manage accounts lets you create new accounts, list all existing accounts, |
|
|
|
|
import a private key into a new account. |
|
|
|
|
|
|
|
|
@ -88,15 +95,19 @@ And finally. DO NOT FORGET YOUR PASSWORD. |
|
|
|
|
{ |
|
|
|
|
Action: accountList, |
|
|
|
|
Name: "list", |
|
|
|
|
Usage: "print account addresses", |
|
|
|
|
Usage: "Print account addresses", |
|
|
|
|
ArgsUsage: " ", |
|
|
|
|
Description: ` |
|
|
|
|
TODO: Please write this |
|
|
|
|
`, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
Action: accountCreate, |
|
|
|
|
Name: "new", |
|
|
|
|
Usage: "create a new account", |
|
|
|
|
Usage: "Create a new account", |
|
|
|
|
ArgsUsage: " ", |
|
|
|
|
Description: ` |
|
|
|
|
|
|
|
|
|
ethereum account new |
|
|
|
|
geth account new |
|
|
|
|
|
|
|
|
|
Creates a new account. Prints the address. |
|
|
|
|
|
|
|
|
@ -106,7 +117,7 @@ You must remember this passphrase to unlock your account in the future. |
|
|
|
|
|
|
|
|
|
For non-interactive use the passphrase can be specified with the --password flag: |
|
|
|
|
|
|
|
|
|
ethereum --password <passwordfile> account new |
|
|
|
|
geth --password <passwordfile> account new |
|
|
|
|
|
|
|
|
|
Note, this is meant to be used for testing only, it is a bad idea to save your |
|
|
|
|
password to file or expose in any other way. |
|
|
|
@ -115,10 +126,10 @@ password to file or expose in any other way. |
|
|
|
|
{ |
|
|
|
|
Action: accountUpdate, |
|
|
|
|
Name: "update", |
|
|
|
|
Usage: "update an existing account", |
|
|
|
|
Usage: "Update an existing account", |
|
|
|
|
ArgsUsage: "<address>", |
|
|
|
|
Description: ` |
|
|
|
|
|
|
|
|
|
ethereum account update <address> |
|
|
|
|
geth account update <address> |
|
|
|
|
|
|
|
|
|
Update an existing account. |
|
|
|
|
|
|
|
|
@ -130,7 +141,7 @@ format to the newest format or change the password for an account. |
|
|
|
|
|
|
|
|
|
For non-interactive use the passphrase can be specified with the --password flag: |
|
|
|
|
|
|
|
|
|
ethereum --password <passwordfile> account update <address> |
|
|
|
|
geth --password <passwordfile> account update <address> |
|
|
|
|
|
|
|
|
|
Since only one password can be given, only format update can be performed, |
|
|
|
|
changing your password is only possible interactively. |
|
|
|
@ -139,10 +150,10 @@ changing your password is only possible interactively. |
|
|
|
|
{ |
|
|
|
|
Action: accountImport, |
|
|
|
|
Name: "import", |
|
|
|
|
Usage: "import a private key into a new account", |
|
|
|
|
Usage: "Import a private key into a new account", |
|
|
|
|
ArgsUsage: "<keyFile>", |
|
|
|
|
Description: ` |
|
|
|
|
|
|
|
|
|
ethereum account import <keyfile> |
|
|
|
|
geth account import <keyfile> |
|
|
|
|
|
|
|
|
|
Imports an unencrypted private key from <keyfile> and creates a new account. |
|
|
|
|
Prints the address. |
|
|
|
@ -155,7 +166,7 @@ You must remember this passphrase to unlock your account in the future. |
|
|
|
|
|
|
|
|
|
For non-interactive use the passphrase can be specified with the -password flag: |
|
|
|
|
|
|
|
|
|
ethereum --password <passwordfile> account import <keyfile> |
|
|
|
|
geth --password <passwordfile> account import <keyfile> |
|
|
|
|
|
|
|
|
|
Note: |
|
|
|
|
As you can directly copy your encrypted accounts to another ethereum instance, |
|
|
|
|