Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 591 Bytes

cast-to-unit.md

File metadata and controls

41 lines (25 loc) · 591 Bytes

cast to-unit

NAME

cast-to-unit - Convert an eth amount to another unit.

SYNOPSIS

cast to-unit [options] value [unit]

DESCRIPTION

Convert an eth amount to another unit.

The value to convert (value) can be a quantity of eth (in wei), or a number with a unit attached to it.

Valid units are:

  • ether
  • gwei
  • wei

OPTIONS

{{#include common-options.md}}

EXAMPLES

  1. Convert 1000 wei to gwei

    cast to-unit 1000 gwei
  2. Convert 1 eth to gwei

    cast to-unit 1ether gwei

SEE ALSO

cast