@mainframe/rpc-web3

Web3 RPC

Stats

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

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

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.