Eth Provider

A Universal Ethereum Provider Client
Alternatives To Eth Provider
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
a day ago49mitTypeScript
Personal cutting-edge technology lab
Eth Provider15811332 months ago51October 27, 20229gpl-3.0JavaScript
A Universal Ethereum Provider Client
Ethers Multicall12617a year ago10April 08, 202216mitTypeScript
Make multiple Ethereum network requests in a single HTTP query. ethcall for ethers v5.
8 years agogpl-2.0C
extreme throughput http daemon
a year ago11May 16, 20211otherC#
:moneybag: A .NET/C# implementation of the Coinbase Commerce API.
5 years ago1apache-2.0Scala
Scala library for integration with Ethereum clients
6 years agomitJavaScript
Solidity Library for parsing and verifying TLS-N proofs.
17 years ago2July 09, 2016mitRuby
Ethereum JSON RPC client.
Kaleido Examples9
10 months ago4Java
A collection of examples for connecting to a Kaleido node with Basic Auth
0x Api Swap7
6 months agomitTypeScript
A library targeting for 0x DeFi aggregator API.
Alternatives To Eth Provider
Select To Compare

Alternative Project Comparisons


A Universal Ethereum Provider Client

Seamlessly connect to HTTP, WebSocket, IPC and Injected RPC transports in Node and the Browser!


  • Follows EIP 1193 Spec
  • Support all transport types (websocket, http, ipc & injected)
  • Attempt connection to an array of RPC endpoints until successful connection
  • Reconnect when connection is lost
  • Emit helpful status updates so apps can handle changes gracefully


npm install eth-provider --save


const provider = require('eth-provider')
const web3 = new Web3(provider())
  • By default, eth-provider will first try to discover providers injected by the environment, usually by a browser or extension
  • If eth-provider fails to find an injected provider it will attempt to connect to local providers running on the user's device like Frame, Geth or Parity
  • You can override these defaults by passing in your own RPC targets
const provider = require('eth-provider')
const web3 = new Web3(provider('wss://${INFURA_ID}))
  • When passing in multiple RPC targets order them by priority
  • When eth-provider fails to connect to a target it will automatically attempt to connect to the next priority target
  • For example ['injected', 'wss://${INFURA_ID}'] will first try to discover injected providers and if unsuccessful connect to the Infura endpoint
const provider = require('eth-provider')
const web3 = new Web3(provider(['injected', 'wss://${INFURA_ID}']))
  • In Node and Electron you'll have access to IPC endpoints created by Geth or Parity that cannot be accessed by the Browser. You can connect to these by using the 'direct' preset, or by passing custom IPC paths
const provider = require('eth-provider')
const web3 = new Web3(provider('direct'))


  • injected - Discover providers injected by environment, usually by the browser or a browser extension
    • Browser
      • ['injected']
  • frame - Connect to Frame running on the user's device
    • Browser/Node/Electron
      • ['ws://', '']
  • direct - Connect to local Ethereum nodes running on the user's device
    • Browser
      • ['ws://', '']
    • Node/Electron
      • [/* Default IPC paths for platform */, 'ws://', '']
  • infura - Connect to Mainnet Infura
    • Browser/Node/Electron
      • ['wss://${infuraId}', '${infuraId}']
  • alchemy - Connect to Mainnet Alchemy
    • Browser/Node/Electron
      • ['wss://${alchemyId}', '${alchemyId}']

View all possible presets here

If you do not pass any targets, eth-provider will use default targets ['injected', 'frame'] in the Browser and ['frame', 'direct'] in Node and Electron.


When creating the provider you can also pass an options object

  • infuraId - Your projects Infura ID
  • alchemyId - Your projects Alchemy ID
  • origin - Used when connecting from outside of a browser env to declare the identity of your connection to interfaces like Frame (this currently doesn't work with HTTP connections)

provider('infura', { infuraId: '123abc' }) or provider({ origin: 'DappName', infuraId: '123abc' })

The origin setting will only be applied when a dapp is connecting to from outside of a browser env.

Popular Ethereum Projects
Popular Http Projects
Popular Blockchain Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.