@mainframe/transport-web3

Web3 transport

Stats

StarsIssuesVersionUpdatedCreatedSize
@mainframe/transport-web3
0.1.13 years ago4 years agoMinified + gzip package size for @mainframe/transport-web3 in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.