@authereum/web3-provider
TypeScript icon, indicating that this package has built-in type declarations

0.0.2-beta.74 • Public • Published

Deprecated: Use the authereum package instead.

@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

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @authereum/web3-provider

Weekly Downloads

7

Version

0.0.2-beta.74

License

MIT

Unpacked Size

31.3 kB

Total Files

22

Last publish

Collaborators

  • cwhinfrey
  • shanefontaine
  • miguelmota