Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@mainframe/rpc-web3

MainframeHQ18MIT0.1.1

Web3 RPC

readme

rpc-web3

rpc-request factory using transport-web3.

Installation

yarn add @mainframe/rpc-web3

Usage

import web3RPC from '@mainframe/rpc-web3'

const rpc = web3RPC('http://localhost')

rpc.request('getUser', ['1234']).then(console.log)

API

web3RPC()

Arguments

  1. url?: string: optional HTTP endpoint. When not provided, window.web3.currentProvider will be used if available.

Returns RequestRPC

License

MIT

changelog

v0.1.1 (2018-07-09)

Export as CommonJS and ESM.

v0.1.0 (2018-04-10)

First release.