v5.1.0
adds setProvider
set providers
In order to set RPC provider endpoints you can use setProvider
:
import { setProvider } from 'depay-web3-client'
setProvider('ethreum', ['http://localhost:8545'])
Make sure you pass an array of endpoints to setProvider.
Currently, we only connect to the first provider of that array, but for future reasons, we might introduce RPC endpoint fallbacks eventually.