# @trufflesuite/eth-json-rpc-infura

> Fork of https://github.com/MetaMask/eth-json-rpc-infura

Latest version **4.0.3-0** (published 2020-08-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install @trufflesuite/eth-json-rpc-infura
pnpm add @trufflesuite/eth-json-rpc-infura
yarn add @trufflesuite/eth-json-rpc-infura
bun add @trufflesuite/eth-json-rpc-infura
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.3-0 |
| Published | 2020-08-07 |
| First published | 2020-08-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | nicholasjpaterno, haltman, fainashalts, cruzmolina, seesemichaelj, eggplantzzz, davidmurdoch, tcoulter, gnidan |

## Links

- npm: https://www.npmjs.com/package/@trufflesuite/eth-json-rpc-infura
- Repository: https://github.com/trufflesuite/eth-json-rpc-infura
- Homepage: https://github.com/kumavis/eth-json-rpc-infura#readme
- Issues: https://github.com/trufflesuite/eth-json-rpc-infura/issues
- npm.io page: https://npm.io/package/@trufflesuite/eth-json-rpc-infura

## Dependencies (4)

- [cross-fetch](https://npm.io/package/cross-fetch.md) ^2.1.1
- [json-rpc-engine](https://npm.io/package/json-rpc-engine.md) ^5.1.3
- [eth-json-rpc-errors](https://npm.io/package/eth-json-rpc-errors.md) ^1.0.1
- [@trufflesuite/eth-json-rpc-middleware](https://npm.io/package/@trufflesuite/eth-json-rpc-middleware.md) ^4.4.2-1

## Recent versions

- 4.0.3-0 (latest) — 2020-08-07

## README

# eth-json-rpc-infura

`json-rpc-engine` middleware for infura's REST endpoints.

### usage as provider

```js
const createInfuraProvider = require('eth-json-rpc-infura/src/createProvider')
const Ethjs = require('ethjs')

const provider = createInfuraProvider({ network: 'mainnet' })
const eth = new Ethjs(provider)
```

### usage as middleware

```js
const createInfuraMiddleware = require('eth-json-rpc-infura')
const RpcEngine = require('json-rpc-engine')

const engine = new RpcEngine()
engine.push(createInfuraMiddleware({ network: 'ropsten' }))
```

---
_Source: https://npm.io/package/@trufflesuite/eth-json-rpc-infura · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
