ethers.js/docs.wrm/api/utils/constants.wrm

50 lines
1.5 KiB
Plaintext
Raw Normal View History

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