New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@ethersproject/constants

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethersproject/constants

Common Ethereum constants used for ethers.

latest
Source
npmnpm
Version
5.8.0
Version published
Weekly downloads
2.1M
16.28%
Maintainers
1
Weekly downloads
 
Created
Source

Etehreum Constants

This sub-module is part of the ethers project.

It contains many frequently used constants when dealing with Ethereum.

For more information, see the documentation.

Importing

Most users will prefer to use the umbrella package, but for those with more specific needs, individual components can be imported.

const {

    AddressZero,
    HashZero,

    EtherSymbol,

    NegativeOne,
    Zero,
    One,
    Two,

    WeiPerEther,
    MaxUint256

} = require("@ethersproject/constants");

License

MIT License

Keywords

Ethereum

FAQs

Package last updated on 26 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts