@mainframe/rpc-web3
Web3 RPC
Last updated 2 years ago by paul_lecam .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @mainframe/rpc-web3 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.1                                ...           latest (2 years ago)

2 Versions

  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |