Nosy Pinocchio Manners

    @mainframe/rpc-web3

    0.1.1 • Public • Published

    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

    Keywords

    none

    Install

    npm i @mainframe/rpc-web3

    DownloadsWeekly Downloads

    1

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    2.58 kB

    Total Files

    7

    Last publish

    Collaborators

    • sarahwiley
    • mosic
    • aclarke
    • howleysv
    • diogoperillo
    • paul_lecam