2019-08-21 01:53:47 -04:00
|
|
|
_section: Constants @<constants>
|
|
|
|
|
2022-02-03 15:31:43 -05:00
|
|
|
The **ethers.constants** Object contains commonly used values.
|
2019-08-21 01:53:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
_subsection: Bytes
|
|
|
|
|
2020-05-08 03:24:40 -04:00
|
|
|
_property: ethers.constants.AddressZero => string<[Address](address)> @<constants-AddressZero> @SRC<constants>
|
2019-08-21 01:53:47 -04:00
|
|
|
The Address Zero, which is 20 bytes (40 nibbles) of zero.
|
|
|
|
|
2020-05-08 03:24:40 -04:00
|
|
|
_property: ethers.constants.HashZero => string<[[DataHexString]]<32>> @<constants-HashZero> @SRC<constants>
|
2019-08-21 01:53:47 -04:00
|
|
|
The Hash Zero, which is 32 bytes (64 nibbles) of zero.
|
|
|
|
|
|
|
|
|
|
|
|
_subsection: Strings
|
|
|
|
|
2020-05-08 03:24:40 -04:00
|
|
|
_property: ethers.constants.EtherSymbol => string @<constants-EtherSymbol> @SRC<constants>
|
2019-08-21 01:53:47 -04:00
|
|
|
The Ether symbol, **Ξ**.
|
|
|
|
|
|
|
|
|
|
|
|
_subsection: BigNumber
|
|
|
|
|
2020-05-08 03:24:40 -04:00
|
|
|
_property: ethers.constants.NegativeOne => [[BigNumber]] @<constants-NegativeOne> @SRC<constants>
|
2019-08-21 01:53:47 -04:00
|
|
|
The BigNumber value representing ``"-1"``.
|
|
|
|
|
2020-05-08 03:24:40 -04:00
|
|
|
_property: ethers.constants.Zero => [[BigNumber]] @<constants-Zero> @SRC<constants>
|
2019-08-21 01:53:47 -04:00
|
|
|
The BigNumber value representing ``"0"``.
|
|
|
|
|
2020-05-08 03:24:40 -04:00
|
|
|
_property: ethers.constants.One => [[BigNumber]] @<constants-One> @SRC<constants>
|
2019-08-21 01:53:47 -04:00
|
|
|
The BigNumber value representing ``"1"``.
|
|
|
|
|
2020-05-08 03:24:40 -04:00
|
|
|
_property: ethers.constants.Two => [[BigNumber]] @<constants-Two> @SRC<constants>
|
2019-08-21 01:53:47 -04:00
|
|
|
The BigNumber value representing ``"2"``.
|
|
|
|
|
2020-05-08 03:24:40 -04:00
|
|
|
_property: ethers.constants.WeiPerEther => [[BigNumber]] @<constants-WeiPerEther> @SRC<constants>
|
2019-08-21 01:53:47 -04:00
|
|
|
The BigNumber value representing ``"1000000000000000000"``, which is the
|
|
|
|
number of Wei per Ether.
|
|
|
|
|
2020-05-08 03:24:40 -04:00
|
|
|
_property: ethers.constants.MaxUint256 => [[BigNumber]] @<constants-MaxUint256> @SRC<constants>
|
2019-08-21 01:53:47 -04:00
|
|
|
The BigNumber value representing the maximum ``uint256`` value.
|
|
|
|
|
|
|
|
|
|
|
|
|