npm.io
1.0.6 • Published 3 years ago

fizen-evm-networks

Licence
ISC
Version
1.0.6
Deps
3
Size
329 kB
Vulns
21
Weekly
0

fizen-evm-networks

This library support EVM networks, it will auto fetch the rpcs every 5 seconds and response the latency & height. User can use this information to find the fastest rpc of the chain

How to use?

const chainIds = [80001, 1, 56, 97]
const evmNetworks = new FizenEvmNetworks(chainIds);
const rpc = evmNetworks.getLowestLatencyChain(1);