wei static method

BigInt wei(
  1. String value
)

Converts a string value to wei.

Example:

EthUnit.wei('1000000000000000000'); // 1 ether in wei

Implementation

static BigInt wei(String value) {
  return BigInt.parse(value);
}