Giter Club home page Giter Club logo

quorum-rpc-proxy's Introduction

Web3 RPC proxy for Quorum

Test project that serves a RPC proxy. When RAFT consensus is used, the timestamps of blocks (in nanoseconds) are too big for a JavaScript number. This proxy converts these timestamps to seconds.

Usage

  • Install dependencies

    npm install
  • Configure by editing config.js. Set rpcUrl to the RPC URL you would like to proxy to. Set port to any available port. Set limit to your expected respone/request size.

    Example:

    module.exports = [{
        rpcUrl: 'http://127.0.0.1:8545',
        port: 7545,
        limit: '50kb'
    }];
    
  • Start server

    npm run start

quorum-rpc-proxy's People

Contributors

dependabot[bot] avatar edgraaff avatar majdt51 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

majdt51 whtech

quorum-rpc-proxy's Issues

Npm Start Error

Hello

When I clone your code and do "npm start" I get this error:

$ npm start

> [email protected] start C:\Blockchain\quorum\workplace\quorum-rpc-proxy
> node .

C:\Blockchain\quorum\workplace\quorum-rpc-proxy\index.js:7
for (const proxy of config) {
                    ^

TypeError: config is not iterable
    at Object.<anonymous> (C:\Blockchain\quorum\workplace\quorum-rpc-proxy\index.js:7:21)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:191:16)
    at bootstrap_node.js:612:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\dany.vandermeij\AppData\Roaming\npm-cache\_logs\2019-01-22T08_27_42_293Z-debug.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.