Complete Ethereum library and wallet implementation in JavaScript.
Go to file
2022-10-19 04:16:23 -04:00
.github admin: add environment to CI 2022-10-18 23:24:24 -04:00
docs.wrm docs: added ConnectionInfo details (#2940). 2022-06-18 00:56:15 -04:00
misc admin: updated spellcheck dictionary 2022-05-20 19:13:34 -04:00
output CI: added dummy file to preserve output folder. 2020-08-23 20:00:39 -04:00
packages Updated tests for goerli. 2022-10-19 04:16:23 -04:00
.gitignore build: added testing folder to git ignore. 2020-11-25 15:35:12 -05:00
CHANGELOG.md admin: update dist files 2022-10-18 23:41:44 -04:00
CHANGELOG.v5-beta.md Splitting CHANGELOG beta vs release. 2020-06-12 21:27:23 -04:00
contributors.json admin: added date to contributors 2022-07-27 16:50:12 -04:00
CONTRIBUTORS.md admin: added date to contributors 2022-07-27 16:50:12 -04:00
karma-esm.conf.js Updated tests for goerli. 2022-10-19 04:16:23 -04:00
karma-umd.conf.js Updated tests for goerli. 2022-10-19 04:16:23 -04:00
LICENSE.md Initial v5 branch commit. 2019-05-14 18:25:46 -04:00
package-lock.json admin: update dist files 2022-10-18 23:41:44 -04:00
package.json Updated tests for goerli. 2022-10-19 04:16:23 -04:00
README.md docs: add Ankr to list of Providers (#2779). 2022-05-14 01:25:10 -04:00
rollup-ancillary.config.js Browser support (with dist files) for Ledger. 2020-01-10 19:59:20 -05:00
rollup-dist.config.js Fix WebWorker support in rollup files (#2976). 2022-05-20 18:18:24 -04:00
rollup-pre-alias.config.js Refactoring dist build process. 2020-11-14 17:42:36 -05:00
rollup-shims.config.js Refactoring dist build process. 2020-11-14 17:42:36 -05:00
rollup-tests.config.js Updated dist files. 2020-11-17 20:36:19 -05:00
SECURITY.md Create security policy. 2020-06-13 17:21:50 -04:00
tsconfig.package.json Added TypeScript declaration maps (#401). 2021-01-19 05:22:54 -05:00
tsconfig.project.json Split hash library files up. 2020-10-18 21:45:32 -04:00

The Ethers Project

npm (tag) Node.js CI

A complete Ethereum wallet implementation and utilities in JavaScript (and TypeScript).

Features:

  • Keep your private keys in your client, safe and sound
  • Import and export JSON wallets (Geth, Parity and crowdsale)
  • Import and export BIP 39 mnemonic phrases (12 word backup phrases) and HD Wallets (English as well as Czech, French, Italian, Japanese, Korean, Simplified Chinese, Spanish, Traditional Chinese)
  • Meta-classes create JavaScript objects from any contract ABI, including ABIv2 and Human-Readable ABI
  • Connect to Ethereum nodes over JSON-RPC, INFURA, Etherscan, Alchemy, Ankr or MetaMask
  • ENS names are first-class citizens; they can be used anywhere an Ethereum addresses can be used
  • Tiny (~104kb compressed; 322kb uncompressed)
  • Modular packages; include only what you need
  • Complete functionality for all your Ethereum desires
  • Extensive documentation
  • Large collection of test cases which are maintained and added to
  • Fully TypeScript ready, with definition files and full TypeScript source
  • MIT License (including ALL dependencies); completely open source to do with as you please

Keep Updated

For the latest news and advisories, please follow the @ethersproject on Twitter (low-traffic, non-marketing, important information only) as well as watch this GitHub project.

For the latest changes, see the CHANGELOG.

Installing

node.js

/home/ricmoo/some_project> npm install --save ethers

browser (UMD)

<script src="https://cdn.ethers.io/lib/ethers-5.6.umd.min.js" type="text/javascript">
</script>

browser (ESM)

<script type="module">
    import { ethers } from "https://cdn.ethers.io/lib/ethers-5.6.esm.min.js";
</script>

Documentation

Browse the documentation online:

Providers

Ethers works closely with an ever-growing list of third-party providers to ensure getting started is quick and easy, by providing default keys to each service.

These built-in keys mean you can use ethers.getDefaultProvider() and start developing right away.

However, the API keys provided to ethers are also shared and are intentionally throttled to encourage developers to eventually get their own keys, which unlock many other features, such as faster responses, more capacity, analytics and other features like archival data.

When you are ready to sign up and start using for your own keys, please check out the Provider API Keys in the documentation.

A special thanks to these services for providing community resources:

Ancillary Packages

These are a number of packages not included in the umbrella ethers npm package, and additional packages are always being added. Often these packages are for specific use-cases, so rather than adding them to the umbrella package, they are added as ancillary packages, which can be included by those who need them, while not bloating everyone else with packages they do not need.

We will keep a list of useful packages here.

License

MIT License (including all dependencies).