# @ethersproject/providers

> Ethereum Providers for ethers.

Latest version **5.8.0** (published 2025-02-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ethersproject/providers
pnpm add @ethersproject/providers
yarn add @ethersproject/providers
bun add @ethersproject/providers
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 5.8.0 |
| Published | 2025-02-26 |
| First published | 2019-03-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 20 |
| Unpacked size | 1.2 MB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 8714 |
| Author | Richard Moore |
| Maintainers | ricmoo |
| Keywords | Ethereum, ethers |

## Links

- npm: https://www.npmjs.com/package/@ethersproject/providers
- Repository: https://github.com/ethers-io/ethers.js
- Homepage: https://github.com/ethers-io/ethers.js#readme
- Issues: https://github.com/ethers-io/ethers.js/issues
- Funding: https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2
- npm.io page: https://npm.io/package/@ethersproject/providers

## Dependencies (20)

- [ws](https://npm.io/package/ws.md) 8.18.0
- [bech32](https://npm.io/package/bech32.md) 1.1.4
- [@ethersproject/rlp](https://npm.io/package/@ethersproject/rlp.md) ^5.8.0
- [@ethersproject/web](https://npm.io/package/@ethersproject/web.md) ^5.8.0
- [@ethersproject/hash](https://npm.io/package/@ethersproject/hash.md) ^5.8.0
- [@ethersproject/sha2](https://npm.io/package/@ethersproject/sha2.md) ^5.8.0
- [@ethersproject/basex](https://npm.io/package/@ethersproject/basex.md) ^5.8.0
- [@ethersproject/bytes](https://npm.io/package/@ethersproject/bytes.md) ^5.8.0
- [@ethersproject/base64](https://npm.io/package/@ethersproject/base64.md) ^5.8.0
- [@ethersproject/logger](https://npm.io/package/@ethersproject/logger.md) ^5.8.0
- [@ethersproject/random](https://npm.io/package/@ethersproject/random.md) ^5.8.0
- [@ethersproject/address](https://npm.io/package/@ethersproject/address.md) ^5.8.0
- [@ethersproject/strings](https://npm.io/package/@ethersproject/strings.md) ^5.8.0
- [@ethersproject/networks](https://npm.io/package/@ethersproject/networks.md) ^5.8.0
- [@ethersproject/bignumber](https://npm.io/package/@ethersproject/bignumber.md) ^5.8.0
- [@ethersproject/constants](https://npm.io/package/@ethersproject/constants.md) ^5.8.0
- [@ethersproject/properties](https://npm.io/package/@ethersproject/properties.md) ^5.8.0
- [@ethersproject/transactions](https://npm.io/package/@ethersproject/transactions.md) ^5.8.0
- [@ethersproject/abstract-signer](https://npm.io/package/@ethersproject/abstract-signer.md) ^5.8.0
- [@ethersproject/abstract-provider](https://npm.io/package/@ethersproject/abstract-provider.md) ^5.8.0

## Recent versions

- 5.8.0 (latest) — 2025-02-26
- 6.0.0-beta.8 (beta) — 2022-04-20
- 5.7.2 — 2022-10-19
- 5.7.1 — 2022-09-14
- 5.7.0 — 2022-08-19
- 5.6.8 — 2022-05-24
- 5.6.7 — 2022-05-21
- 5.6.6 — 2022-05-14
- 5.6.5 — 2022-05-03
- 6.0.0-beta.7 — 2022-04-20
- 6.0.0-beta.6 — 2022-04-20
- 6.0.0-beta.5 — 2022-04-20
- 6.0.0-beta.4 — 2022-04-19
- 6.0.0-beta.3 — 2022-04-17
- 6.0.0-beta.2 — 2022-04-14
- … 100 more at https://npm.io/package/@ethersproject/providers/versions

## README

Ethereum Providers
==================

This sub-module is part of the [ethers project](https://github.com/ethers-io/ethers.js).

It contains common Provider classes, utility functions for dealing with providers
and re-exports many of the classes and types needed to implement a custom Provider.

For more information, see the [documentation](https://docs.ethers.io/v5/api/providers/).


Importing
---------

Most users will prefer to use the [umbrella package](https://www.npmjs.com/package/ethers),
but for those with more specific needs, individual components can be imported.

```javascript
const {

    Provider,
    BaseProvider,

    JsonRpcProvider,
    StaticJsonRpcProvider,
    UrlJsonRpcProvider,

    FallbackProvider,

    AlchemyProvider,
    CloudflareProvider,
    EtherscanProvider,
    InfuraProvider,
    NodesmithProvider,

    IpcProvider,

    Web3Provider,

    WebSocketProvider,

    JsonRpcSigner,

    getDefaultProvider,

    getNetwork,

    Formatter,

    // Types

    TransactionReceipt,
    TransactionRequest,
    TransactionResponse,

    Listener,

    ExternalProvider,

    Block,
    BlockTag,
    EventType,
    Filter,
    Log,

    JsonRpcFetchFunc,

    Network,
    Networkish

} = require("@ethersproject/providers");
```


License
-------

MIT License

---
_Source: https://npm.io/package/@ethersproject/providers · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
