@mainframe/rpc-web3
v0.1.1
Published
Web3 RPC
Keywords
Readme
rpc-web3
rpc-request factory using transport-web3.
Installation
yarn add @mainframe/rpc-web3Usage
import web3RPC from '@mainframe/rpc-web3'
const rpc = web3RPC('http://localhost')
rpc.request('getUser', ['1234']).then(console.log)API
web3RPC()
Arguments
url?: string: optional HTTP endpoint. When not provided,window.web3.currentProviderwill be used if available.
Returns RequestRPC
License
MIT
