Hethers
  • Documentation
  • Getting Started
  • Application Programming Interface
    • Providers
      • Provider
        • Accounts Methods
        • Logs Methods
        • Network Status Methods
        • Transactions Methods
        • Event Emitter Methods
        • Base Provider
        • HederaProvider
      • Types
    • Contract Interaction
      • Contract
      • ContractFactory
      • Example: ERC-20 Contract
    • Utilities
      • Accounts
      • Addresses
      • Application Binary Interface
        • AbiCoder
        • ABI Formats
        • Fragments
        • Interface
      • BigNumber
      • Byte Manipulation
      • Constants
      • Display Logic and Input
      • Encoding Utilities
      • FixedNumber
      • Hashing Algorithms
      • HD Wallet
      • Logging
      • Property Utilities
      • Signing Key
      • Strings
      • Transactions
      • Web Utilities
      • Wordlists
    • Signers
  • Contributing
  • Other Resources
Powered by GitBook
On this page
  • Bytes
  • Strings
  • BigNumber
  1. Application Programming Interface
  2. Utilities

Constants

The hethers.constants Object contains commonly used values.

Bytes

hethers.constants.AddressZero ⇒ string<Address>

The Address Zero, which is 20 bytes (40 nibbles) of zero.

hethers.constants.HashZero ⇒ string<DataHexString<32>>

The Hash Zero, which is 32 bytes (64 nibbles) of zero.

Strings

hethers.constants.HbarSymbol ⇒ string

The Hbar symbol, ℏ.

BigNumber

hethers.constants.NegativeOne ⇒ BigNumber

The BigNumber value representing "-1".

hethers.constants.Zero ⇒ BigNumber

The BigNumber value representing "0".

hethers.constants.One ⇒ BigNumber

The BigNumber value representing "1".

hethers.constants.Two ⇒ BigNumber

The BigNumber value representing "2".

hethers.constants.TinybarPerHbar ⇒ BigNumber

The BigNumber value representing "100000000", which is the number of Tinybar per Hbar.

hethers.constants.MaxUint256 ⇒ BigNumber

The BigNumber value representing the maximum uint256 value.

PreviousByte ManipulationNextDisplay Logic and Input

Last updated 3 years ago