48 lines
1.5 KiB
Plaintext
48 lines
1.5 KiB
Plaintext
_section: Constants @<constants>
|
|
|
|
The **ethers.contants** Object contains commonly used values.
|
|
|
|
_heading: Importing
|
|
|
|
_code: constants-import.js
|
|
|
|
|
|
_subsection: Bytes
|
|
|
|
_property: ethers.constants.AddressZero => string<[Address](address)> @<constants-addresszero> @SRC<constants>
|
|
The Address Zero, which is 20 bytes (40 nibbles) of zero.
|
|
|
|
_property: ethers.constants.HashZero => string<[[datahexstring]]<32>> @<constants-hashzero> @SRC<constants>
|
|
The Hash Zero, which is 32 bytes (64 nibbles) of zero.
|
|
|
|
|
|
_subsection: Strings
|
|
|
|
_property: ethers.constants.EtherSymbol => string @<constants-ethersymbol> @SRC<constants>
|
|
The Ether symbol, **Ξ**.
|
|
|
|
|
|
_subsection: BigNumber
|
|
|
|
_property: ethers.constants.NegativeOne => [[bignumber]] @<constants-negativeone> @SRC<constants>
|
|
The BigNumber value representing ``"-1"``.
|
|
|
|
_property: ethers.constants.Zero => [[bignumber]] @<constants-zero> @SRC<constants>
|
|
The BigNumber value representing ``"0"``.
|
|
|
|
_property: ethers.constants.One => [[bignumber]] @<constants-one> @SRC<constants>
|
|
The BigNumber value representing ``"1"``.
|
|
|
|
_property: ethers.constants.Two => [[bignumber]] @<constants-two> @SRC<constants>
|
|
The BigNumber value representing ``"2"``.
|
|
|
|
_property: ethers.constants.WeiPerEther => [[bignumber]] @<constants-weiperether> @SRC<constants>
|
|
The BigNumber value representing ``"1000000000000000000"``, which is the
|
|
number of Wei per Ether.
|
|
|
|
_property: ethers.constants.MaxUint256 => [[bignumber]] @<constants-maxuint256> @SRC<constants>
|
|
The BigNumber value representing the maximum ``uint256`` value.
|
|
|
|
|
|
|