1.2 KiB
1.2 KiB
Documentation: html
Constants
The ethers.contants Object contains commonly used values.
Importing
//const { constants } = require("ethers");
// const { constants } = require("@ethersproject/constants");
Bytes
constants . AddressZero
The Address Zero, which is 20 bytes (40 nibbles) of zero.
constants . HashZero
The Hash Zero, which is 32 bytes (64 nibbles) of zero.
Strings
constants . EtherSymbol
The Ether symbol, Ξ.
BigNumber
constants . NegativeOne
The BigNumber value representing "-1"
.
constants . Zero
The BigNumber value representing "0"
.
constants . One
The BigNumber value representing "1"
.
constants . Two
The BigNumber value representing "2"
.
constants . WeiPerEther
The BigNumber value representing "1000000000000000000"
, which is the
number of Wei per Ether.
constants . MaxUint256
The BigNumber value representing the maximum uint256
value.
Content Hash: a781a8990aec282632e70ebc003a711adf5bc7773243aed727fc37a0934097f7