Skip to content

Add ability to use a local rpc provider

Choose a tag to compare

@pixelmatrix pixelmatrix released this 28 Jun 18:05
· 720 commits to main since this release

You can now use the SDK with a local blockchain (truffle / ganache). Instead of specifying a network, you can now pass your host.

// configure web3 with localhost
const web3 = bitski.getWeb3('http://localhost:9545');
// or just a provider
const provider = bitski.getProvider('http://localhost:9545');
const web3 = new Web3(provider);