Web3 Zeus Provider
Reliable Web3 provider which features:
- Connects to multiple RPC APIs and switches between them when some are unavailable.
- Allows to specify private keys for signing transactions.
Primarily made for server-side usage (as it depends on a heavy library...).
Installation
npm install --save web3-zeus-provider
Usage
const ZeusProvider = ;const zeusProvider = rpcApis: "https://mainnet.infura.io" "https://localhost:8545" privateKeys: // Accounts which are used for offline transaction signing "FCAFC28AF87287F3AB81554C2DF38C3FCE6E2C7654DB7710243A2D52A9EDF441" { console; };const Web3 = ;const web3 = zeusProvider; // Exampleweb3eth; // ... zeusProvider; // Stop internal provider engine listeners once you don't need provider anymore
Development
Develop using local environment or Docker:
bash docker.sh
License
MIT (c) Nikita Savchenko