Skip to content

v5.1.0

Compare
Choose a tag to compare
@10xSebastian 10xSebastian released this 08 Sep 08:12
· 128 commits to master since this release
e1cc1a2

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.