#
Constants

The ethers.contants Object contains commonly used values.

###
Importing

Skipping JavaScript Evaluation.

##
Bytes

constants . AddressZero ⇒ DataHexstring
source

The Address Zero, which is 20 bytes (40 nibbles) of zero.

constants . HashZero ⇒ DataHexstring
source

The Hash Zero, which is 32 bytes (64 nibbles) of zero.

##
Strings

constants . EtherSymbol ⇒ string
source

The Ether symbol, Ξ.

##
BigNumber

constants . NegativeOne ⇒ BigNumber
source

The BigNumber value representing `"-1"`.

constants . Zero ⇒ BigNumber
source

The BigNumber value representing `"0"`.

constants . One ⇒ BigNumber
source

The BigNumber value representing `"1"`.

constants . Two ⇒ BigNumber
source

The BigNumber value representing `"2"`.

constants . WeiPerEther ⇒ BigNumber
source

The BigNumber value representing `"1000000000000000000"`, which is the number of Wei per Ether.

constants . MaxUint256 ⇒ BigNumber
source

The BigNumber value representing the maximum `uint256` value.

The content of this site is licensed under the Creative Commons Attribution 4.0 International License.