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.
- 
Install dependencies
npm install
 - 
Configure by editing
config.js. SetrpcUrlto the RPC URL you would like to proxy to. Setportto any available port. Setlimitto your expected respone/request size.Example:
module.exports = [{ rpcUrl: 'http://127.0.0.1:8545', port: 7545, limit: '50kb' }]; - 
Start server
npm run start