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

transport-web3

Web3 transport for browser as a RxJS Subject.

Installation

yarn add @mainframe/transport-web3

Usage

import web3Transport from '@mainframe/transport-web3'

const transport = web3Transport('http://localhost:8500')

transport.subcribe(console.log)
transport.next({ jsonrpc: '2.0', id: 1, method: 'web3_clientVersion' })

API

web3Transport()

Arguments

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

Returns Rx.Subject<Object>

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 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |