<html><head><title>Constants</title><linkrel="stylesheet"type="text/css"href="/static/style.css"></head><body><divclass="sidebar"><divclass="header"><divclass="logo"><ahref="/"><divclass="image"></div><divclass="name">ethers</div><divclass="version">v5.0-beta</div></a></div></div><divclass="toc"><div><divclass="link title"><ahref="/">Documentation</a></div><divclass="base show link depth-1"><ahref="/getting-started/">Getting Started</a></div><divclass="hide link depth-2"><ahref="/getting-started/#installing">Installing</a></div><divclass="hide link depth-2"><ahref="/getting-started/#importing">Importing</a></div><divclass="base show link depth-1"><ahref="/concepts/">Concepts</a></div><divclass="hide link depth-2"><ahref="/concepts/events/">Events</a></div><divclass="hide link depth-3"><ahref="/concepts/events/#solidity-topics">Solidity Topics</a></div><divclass="hide link depth-2"><ahref="/concepts/gas/">Gas</a></div><divclass="hide link depth-3"><ahref="/concepts/gas/#gas-price">Gas Price</a></div><divclass="hide link depth-3"><ahref="/concepts/gas/#gas-limit">Gas Limit</a></div><divclass="base ancestor show link depth-1"><ahref="/api/">Application Programming Interface</a></div><divclass="show link depth-2"><ahref="/api/contract/">Contracts</a></div><divclass="hide link depth-3"><ahref="/api/contract/#buckets">Buckets</a></div><divclass="show link depth-2"><ahref="/api/signer/">Signers</a></div><divclass="hide link depth-3"><ahref="/api/signer/#signer">Signer</a></div><divclass="hide link depth-3"><ahref="/api/signer/#wallet">Wallet</a></div><divclass="hide link depth-3"><ahref="/api/signer/#voidsigner">VoidSigner</a></div><divclass="hide link depth-3"><ahref="/api/signer/#externallyownedaccount">ExternallyOwnedAccount</a></div><divclass="show link depth-2"><ahref="/api/providers/">Providers</a></div><divclass="hide link depth-3"><ahref="/api/providers/provider/">Provider</a></div><divclass="hide link depth-4"><ahref="/api/providers/provider/#accounts-methods">Accounts Methods</a></div><divclass="hide link depth-4"><ahref="/api/providers/provider/#blocks-methods">Blocks Methods</a></div><divclass="hide link depth-4"><ahref="/api/providers/provider/#ethereum-naming-service-(ens)-methods">Ethereum Naming Service (ENS) Methods</a></div><divclass="hide link depth-4"><ahref="/api/providers/provider/#logs-methods">Logs Methods</a></div><divclass="hide link depth-4"><ahref="/api/providers/provider/#network-status-methods">Network Status Methods</a></div><divclass="hide link depth-4"><ahref="/api/providers/provider/#transactions-methods">Transactions Methods</a></div><divclass="hide link depth-4"><ahref="/api/providers/provider/#event-emitter-methods">Event Emitter Methods</a></div><divclass="hide link depth-4"><ahref="/api/providers/provider/#inspection-methods">Inspection Methods</a></div><divclass="hide link depth-3"><ahref="/api/providers/jsonrpc-provider/">JsonRpcProvider</a></div><divclass="hide link depth-4"><ahref="/api/providers/jsonrpc-provider/#jsonrpcsigner">JsonRpcSigner</a></div><divclass="hide link depth-4"><ahref="/api/providers/jsonrpc-provider/#jsonrpcuncheckedsigner">JsonRpcUncheckedSigner</a></div><divclass="hide link depth-3"><ahref="/api/providers/api-providers/">API Providers</a></div><divclass="hide link depth-4"><ahref="/api/providers/api-providers/#etherscanprovider">EtherscanProvider</a></div><divclass="hide link depth-4"><ahref="/api/providers/api-providers/#infuraprovider">InfuraProvider</a></div><divclass="hide link depth-4"><ahref="/api/providers/api-providers/#alchemyprovider">AlchemyProvider</a></div><divclass="hide link depth-4"><ahref="/api/providers/api-providers/#cloudfrontprovider">CloudfrontProvider</a></div><divclass="hide link depth-3"><ahref="/api/providers/other/">Other Providers</a></div><divclass="hide link depth-4"><ahref="/api/providers/other/#fallbackprovider">FallbackProvider</a></div><divclass="hide link depth-4"><ahref="/api/providers/other/#ipcprovider">IpcProvider</a></div><divclass="h
<aname="constants-addresszero"></a><divclass="property show-anchors"><divclass="signature"><spanclass="path">constants</span> . <spanclass="method">AddressZero</span><spanclass="arrow">⇒</span><spanclass="returns">string< <ahref="/api/utils/address/#address">Address</a> ></span><divclass="anchors"><aclass="self"href="#constants-addresszero"></a><aclass="source"href="https://github.com/ethers-io/ethers.js/blob/ethers-v5-beta/packages/constants/src.ts/index.ts#L5">source</a></div></div><divclass="body"><p>The Address Zero, which is 20 bytes (40 nibbles) of zero.</p></div></div>
<aname="constants-hashzero"></a><divclass="property show-anchors"><divclass="signature"><spanclass="path">constants</span> . <spanclass="method">HashZero</span><spanclass="arrow">⇒</span><spanclass="returns">string< <ahref="/api/utils/bytes/#datahexstring">DataHexstring</a>< 32 > ></span><divclass="anchors"><aclass="self"href="#constants-hashzero"></a><aclass="source"href="https://github.com/ethers-io/ethers.js/blob/ethers-v5-beta/packages/constants/src.ts/index.ts#L6">source</a></div></div><divclass="body"><p>The Hash Zero, which is 32 bytes (64 nibbles) of zero.</p></div></div>
<aname="constants-negativeone"></a><divclass="property show-anchors"><divclass="signature"><spanclass="path">constants</span> . <spanclass="method">NegativeOne</span><spanclass="arrow">⇒</span><spanclass="returns"><ahref="/api/utils/bignumber/">BigNumber</a></span><divclass="anchors"><aclass="self"href="#constants-negativeone"></a><aclass="source"href="https://github.com/ethers-io/ethers.js/blob/ethers-v5-beta/packages/constants/src.ts/index.ts#L11">source</a></div></div><divclass="body"><p>The BigNumber value representing <codeclass="inline">"-1"</code>.</p></div></div>
<aname="constants-zero"></a><divclass="property show-anchors"><divclass="signature"><spanclass="path">constants</span> . <spanclass="method">Zero</span><spanclass="arrow">⇒</span><spanclass="returns"><ahref="/api/utils/bignumber/">BigNumber</a></span><divclass="anchors"><aclass="self"href="#constants-zero"></a><aclass="source"href="https://github.com/ethers-io/ethers.js/blob/ethers-v5-beta/packages/constants/src.ts/index.ts#L12">source</a></div></div><divclass="body"><p>The BigNumber value representing <codeclass="inline">"0"</code>.</p></div></div>
<aname="constants-one"></a><divclass="property show-anchors"><divclass="signature"><spanclass="path">constants</span> . <spanclass="method">One</span><spanclass="arrow">⇒</span><spanclass="returns"><ahref="/api/utils/bignumber/">BigNumber</a></span><divclass="anchors"><aclass="self"href="#constants-one"></a><aclass="source"href="https://github.com/ethers-io/ethers.js/blob/ethers-v5-beta/packages/constants/src.ts/index.ts#L13">source</a></div></div><divclass="body"><p>The BigNumber value representing <codeclass="inline">"1"</code>.</p></div></div>
<aname="constants-two"></a><divclass="property show-anchors"><divclass="signature"><spanclass="path">constants</span> . <spanclass="method">Two</span><spanclass="arrow">⇒</span><spanclass="returns"><ahref="/api/utils/bignumber/">BigNumber</a></span><divclass="anchors"><aclass="self"href="#constants-two"></a><aclass="source"href="https://github.com/ethers-io/ethers.js/blob/ethers-v5-beta/packages/constants/src.ts/index.ts#L14">source</a></div></div><divclass="body"><p>The BigNumber value representing <codeclass="inline">"2"</code>.</p></div></div>
<aname="constants-weiperether"></a><divclass="property show-anchors"><divclass="signature"><spanclass="path">constants</span> . <spanclass="method">WeiPerEther</span><spanclass="arrow">⇒</span><spanclass="returns"><ahref="/api/utils/bignumber/">BigNumber</a></span><divclass="anchors"><aclass="self"href="#constants-weiperether"></a><aclass="source"href="https://github.com/ethers-io/ethers.js/blob/ethers-v5-beta/packages/constants/src.ts/index.ts#L15">source</a></div></div><divclass="body"><p>The BigNumber value representing <codeclass="inline">"1000000000000000000"</code>, which is the number of Wei per Ether.</p></div></div>
<aname="constants-maxuint256"></a><divclass="property show-anchors"><divclass="signature"><spanclass="path">constants</span> . <spanclass="method">MaxUint256</span><spanclass="arrow">⇒</span><spanclass="returns"><ahref="/api/utils/bignumber/">BigNumber</a></span><divclass="anchors"><aclass="self"href="#constants-maxuint256"></a><aclass="source"href="https://github.com/ethers-io/ethers.js/blob/ethers-v5-beta/packages/constants/src.ts/index.ts#L16">source</a></div></div><divclass="body"><p>The BigNumber value representing the maximum <codeclass="inline">uint256</code> value.</p></div></div><divclass="footer"><divclass="nav previous"><ahref="/api/utils/bytes/"><spanclass="arrow">←</span>Byte Manipulation</a></div><divclass="nav next"><ahref="/api/utils/display-logic/">Display Logic and Input<spanclass="arrow">→</span></a></div></div><divclass="copyright">The content of this site is licensed under the <ahref="https://choosealicense.com/licenses/cc-by-4.0/">Creative Commons Attribution 4.0 International License</a>.</div></div><scriptsrc="/script.js"type="text/javascript"></script></body></html><!-- ContentHash:8732112b89ac959c2d7a0f0973da5c564b8f0905fd2f746eeac011434d55989c -->