Skip to content
This repository has been archived by the owner on Dec 24, 2022. It is now read-only.
/ quorum-rpc-proxy Public archive

Patching Web3 RPC proxy that converts nanosecond timestamps to seconds

Notifications You must be signed in to change notification settings

edgraaff/quorum-rpc-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Patching Web3 RPC proxy that converts nanosecond timestamps to seconds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published