gleeth/commands/wallet

Types

Wallet command operations

pub type WalletOperation {
  CreateFromKey(String)
  GenerateNew
  ShowInfo(String)
  SignMessage(String, String)
  VerifyMessage(String, String, String)
}

Constructors

  • CreateFromKey(String)
  • GenerateNew
  • ShowInfo(String)
  • SignMessage(String, String)
  • VerifyMessage(String, String, String)

Values

pub fn parse_args(
  args: List(String),
) -> Result(WalletOperation, String)

Parse wallet command arguments

pub fn print_help() -> Nil

Print help for wallet command

pub fn print_usage() -> Nil

Print usage information

pub fn run(operation: WalletOperation) -> Result(Nil, String)

Execute wallet operation

Search Document