authereum
package instead.
Deprecated: Use the @authereum/web3-provider
Web3-compatible Authereum provider
Getting started
Instantiating Authereum web3 provider:
import AuthereumProvider from '@authereum/web3-provider'
const config = {
rpcUri: 'https://kovan.infura.io/',
webUri: 'http://localhost:3000',
apiUri: 'http://localhost:4000'
}
const provider = new AuthereumProvider(config)
const web3 = new Web3(provider)
Injecting authereum web3 with provider to window object
import { injectWeb3 } from '@authereum/web3-provider'
injectWeb3()
// window.web3 exists now
Development
Watch and build:
npm run dev
Build:
npm run build
Lint:
npm run lint
Test
npm test