Use web3

Dapper does not insist that you use web3 in your app- you may use whatever RPC convenience library works for your dapp. Here's a few notes about using web3 with Dapper.

web3 and Dapper

If you are using web3, please note that Dapper does not inject it into the app’s DOM as part of the injected provider. To ensure web3 works within your integration:

Include web3 in your bundle:

npm install web3


Note: We require web3 v1.x. Use of earlier versions may cause errors in your integration.

Initialize web3 with the injected provider:

import Web3 from ‘web3’;

const provider = window.ethereum;
const web3 = new Web3(provider);
Last Updated: 6/11/2019, 8:28:38 PM