gwei static method

BigInt gwei(
  1. String value
)

Converts a gwei string value to wei.

Example:

EthUnit.gwei('1'); // 1 gwei = 10^9 wei

Implementation

static BigInt gwei(String value) {
  return _parseDecimal(value, 9);
}