ethers
beta-exports.16
DOCUMENTATION
Getting Started
Ethereum Basics
Application Programming Interface
Application Binary Interface
Addresses
Constants
Constants
Contracts
Cryptographic Functions
Hashing Utilities
Providers
Transactions
Utilities
Wallets
Wordlists
Migrating from v5
Contributings and Hacking
License and Copyright
Documentation »API »Constants
 Constants

Some common constants useful for Ethereum.

  • Constants
 CONSTANTS
 <src>EtherSymbol⇒ string

A constant for the ether symbol (normalized using NFKC).

(i.e. "\u039e")

 <src>MaxInt256⇒ bigint

A constant for the maximum value for an int256.

(i.e. 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffn)

 <src>MaxUint256⇒ bigint

A constant for the maximum value for a uint256.

(i.e. 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffn)

 <src>MessagePrefix⇒ string

A constant for the EIP-191 personal message prefix.

(i.e. "\x19Ethereum Signed Message:\n")

 <src>MinInt256⇒ bigint

A constant for the minimum value for an int256.

(i.e. -8000000000000000000000000000000000000000000000000000000000000000n)

 <src>N⇒ bigint

A constant for the order N for the secp256k1 curve.

(i.e. 0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141n)

 <src>WeiPerEther⇒ bigint

A constant for the number of wei in a single ether.

(i.e. 1000000000000000000n)

 <src>ZeroAddress⇒ string

A constant for the zero address.

(i.e. "0x0000000000000000000000000000000000000000")

 <src>ZeroHash⇒ string

A constant for the zero hash.

(i.e. "0x0000000000000000000000000000000000000000000000000000000000000000")

← Addresses
Contracts→
The content of this site is licensed under the Creative Commons License. Generated on November 28, 2022, 2:54am.