Skip to content

dappface/ethereum-provider

Repository files navigation

Build Status Lint Status codecov

DAPPFACE Ethereum Provider

EIP-1193 compatible Ethereum provider which is injectable for both Web and React Native WebView.

Install

  npm i -D @dappface/ethereum-provider

Usage

import { EthereumProvider } from '@dappface/ethereum-provider'
import Web3 from 'web3.js' // optional

const ethereum = new EthereumProvider({
  url: 'wss://your-remote-node-url'
})

window.ethereum = ethereum

// optionally wrap with your favorite ethereum util library
const web3 = new Web3(ethereum)

Advanced Usage

Inject in React Native WebView

// TODO

Hook wallet implemented in React Native

// TODO

Create custom wallet connection

// TODO

Create custom node connection

// TODO