# ethers.js — card for AI agents

Complete Ethereum library for building dapps, wallets and blockchain tools.

Category: Crypto and web3 · npm package `ethers` · latest version 6.17.0 (checked 2026-11-01)
Install: `npm install ethers`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Rules for AI agents (paste into AGENTS.md or CLAUDE.md)

## ethers.js
- Install with `npm install ethers`. In the browser, import from the bundled ESM build in `./dist/ethers.min.js`.
- Use the v6 docs at docs.ethers.org/v6 for Getting Started and the full API.
- Treat `ethers.getDefaultProvider()` as a starting point. The README says its keys are shared and intentionally throttled, so set up the project's own provider keys.
- ENS names can be passed wherever an Ethereum address can be used, per the README.
- For call batching, extra ENS coin types, Ganache, Optimism utilities or Ledger signing, use the extension packages the README lists rather than looking for them in the core `ethers` package.
- Pass coinType as a `bigint`; the releases page lists "Use bigint for coinType instead of number values".
- Do not add or trust any token claiming affiliation with ethers. The website says ethers has none.

## Docs written for agents
- [llms.txt (index of the docs)](https://ethereum.org/llms.txt)

## What it is
- ethers.js is a JavaScript library for Ethereum, written in TypeScript. The README calls it "a complete, compact and simple library for Ethereum and ilk." The GitHub repository describes it as a "Complete Ethereum library and wallet implementation in JavaScript". The repository was created in July 2016 and is MIT licensed.
- The README's feature list starts with keys. It covers importing and exporting JSON wallets, BIP 39 mnemonic phrases and HD wallets. It also covers contracts: meta-classes turn any contract ABI into a JavaScript object, including a Human-Readable ABI. For node connections, it lists JSON-RPC, INFURA, Etherscan, Alchemy, Ankr and MetaMask.
- The README says the `ethers` package "only includes the most common and most core functionality to interact with Ethereum." Call batching through MulticallProvider, Ledger signing and in-memory Ganache nodes ship as separate extension packages.

## Caveats
- Default keys are shared and throttled: The README says the built-in provider keys are shared and are throttled on purpose. It says your own keys give "faster responses, more capacity, analytics and other features like archival data."
- Batching and Ledger sit outside the core: The README lists MulticallProvider, MulticoinPlugin for extra ENS coin types, a Ganache provider, Optimism Utilities and LedgerSigner as extension packages. It says the `ethers` package itself only includes the most common and most core functionality.
- No official token: The website warns that ethers has no token. It says any token or website claiming to be affiliated with ethers is a scam.
- coinType moved to bigint: The releases page lists a change to use `bigint` for coinType instead of number values.

## Numbers (AgentGid data)
- Gid Score: 69.3 (#420 of all tools, 2 of 155 in its category)
- Used in 30 public projects set up for AI coding agents (0.5%)
- Downloads last week: 5,106,027 (as of 2026-11-24), +33.4% over 4 weeks
- GitHub stars: 8,727 (as of 2026-11-24)
- Last push: 2026-06-18

## Often used with
dotenv 56.7%, Hardhat 30.0%, Solana Web3.js 20.0%, OpenZeppelin Contracts 20.0%, Hardhat Toolbox 20.0%, viem 20.0%

## Checked alternatives (same job)
- viem: https://agentgid.com/tools/viem/agent.md
- Solana Kit: https://agentgid.com/tools/solana-kit/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/ethers/
- Homepage: https://ethers.org
- Repository: https://github.com/ethers-io/ethers.js
- Source: https://github.com/ethers-io/ethers.js#readme
- Source: https://github.com/ethers-io/ethers.js
- Source: https://github.com/ethers-io/ethers.js/releases
- Source: https://ethers.org/

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
