0.1.1 • Published 7 years ago

@mainframe/rpc-web3 v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

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