Documentation
¶
Index ¶
- Variables
- func DeleteAccount(ksPath, account string) error
- func DeleteAccountAction(c *cli.Context) error
- func ListAccount(ksPath string, index string) error
- func ListAccountAction(c *cli.Context) error
- func NewAccount(ksPath string) error
- func NewAccountAction(c *cli.Context) error
- func ParseFlagKeystore(c *cli.Context) string
- func ReadPassphrase(prompt string) (string, error)
- func UpdateAccount(ksPath, account string) error
- func UpdateAccountAction(c *cli.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var AccountCmd = cli.Command{ Name: "account", Usage: "manage accounts", Flags: []cli.Flag{FlagKeystore}, Subcommands: []cli.Command{ NewAccountCmd, ListAccountCmd, UpdateAccountCmd, DeleteAccountCmd, }, }
View Source
var DefaultKeystore = utils.DefaultKeystore
View Source
var DeleteAccountCmd = cli.Command{ Name: "delete", Usage: "delete an account", UsageText: "delete <account|index>", Action: DeleteAccountAction, Flags: []cli.Flag{}, }
View Source
var (
ErrInsufficientArguments = fmt.Errorf("insufficient arguments")
)
View Source
var ( FlagKeystore = cli.StringFlag{ Name: "keystore", Usage: "keystore directory", Value: DefaultKeystore(), } )
View Source
var ListAccountCmd = cli.Command{ Name: "list", Usage: "list account", UsageText: "list [index]", Action: ListAccountAction, Flags: []cli.Flag{}, }
View Source
var NewAccountCmd = cli.Command{ Name: "new", Usage: "generate a new account", UsageText: "new", Action: NewAccountAction, Flags: []cli.Flag{}, }
View Source
var ParseBigInt = utils.ParseBigInt
View Source
var ParseUint64 = utils.ParseUint64
View Source
var UpdateAccountCmd = cli.Command{ Name: "update", Usage: "update an account", UsageText: "update <address|index>", Action: UpdateAccountAction, Flags: []cli.Flag{}, }
Functions ¶
func DeleteAccount ¶
func DeleteAccountAction ¶
func ListAccount ¶
func ListAccountAction ¶
func NewAccount ¶
func NewAccountAction ¶
func ParseFlagKeystore ¶
func ReadPassphrase ¶
func UpdateAccount ¶
func UpdateAccountAction ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.