talira

ethers.js

A complete, compact Ethereum library for JavaScript and TypeScript

open sourceMITfree

ethers.js is a complete, compact library for Ethereum and compatible chains, written in TypeScript. It keeps private keys in the client, imports and exports JSON wallets and BIP 39 mnemonic phrases and HD wallets, creates JavaScript objects from any contract ABI (including human-readable ABIs), connects to nodes over JSON-RPC or providers such as INFURA, Etherscan and Alchemy, and treats ENS names as addresses. It's about 144 KB compressed, tree-shakeable and MIT-licensed including all dependencies.

Problems it solves

  • interact with an Ethereum smart contract from JavaScript
  • create and sign Ethereum transactions in a web app
  • connect a dapp to Ethereum through a JSON-RPC provider

Features

  • wallets, JSON keystores, mnemonics and HD wallets
  • contract objects from ABIs
  • JSON-RPC, INFURA, Etherscan and Alchemy providers
  • ENS names as addresses
  • tree-shakeable TypeScript library