gleeth/cli

Types

pub type Args {
  Args(command: Command, rpc_url: String)
}

Constructors

  • Args(command: Command, rpc_url: String)
pub type Command {
  BlockNumber
  Balance(addresses: List(String), file: option.Option(String))
  Call(
    contract: String,
    function: String,
    parameters: List(String),
    abi_file: option.Option(String),
  )
  Transaction(hash: String)
  Code(address: String)
  EstimateGas(
    from: String,
    to: String,
    value: String,
    data: String,
  )
  StorageAt(address: String, slot: String, block: String)
  GetLogs(
    from_block: String,
    to_block: String,
    address: String,
    topics: List(String),
  )
  Send(
    to: String,
    value: String,
    private_key: String,
    gas_limit: String,
    data: String,
    legacy: Bool,
  )
  Wallet(wallet_args: List(String))
  Help
}

Constructors

  • BlockNumber
  • Balance(addresses: List(String), file: option.Option(String))
  • Call(
      contract: String,
      function: String,
      parameters: List(String),
      abi_file: option.Option(String),
    )
  • Transaction(hash: String)
  • Code(address: String)
  • EstimateGas(
      from: String,
      to: String,
      value: String,
      data: String,
    )
  • StorageAt(address: String, slot: String, block: String)
  • GetLogs(
      from_block: String,
      to_block: String,
      address: String,
      topics: List(String),
    )
  • Send(
      to: String,
      value: String,
      private_key: String,
      gas_limit: String,
      data: String,
      legacy: Bool,
    )
  • Wallet(wallet_args: List(String))
  • Help

Values

pub fn parse_args(
  args: List(String),
) -> Result(Args, types.GleethError)
pub fn show_help() -> Nil
Search Document