bls-wallet-aggregator-proxy
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

Aggregator Proxy

Usage

import {
  runAggregatorProxy,

  // AggregatorProxyCallback,
  // ^ Alternatively, for manual control, import AggregatorProxyCallback to
  // just generate the req,res callback for use with http.createServer
} from 'aggregator-proxy';

runAggregatorProxy(
  'https://arbitrum-testnet.blswallet.org',
  async bundle => {
    console.log('proxying bundle', JSON.stringify(bundle, null, 2));

    // Return a different/augmented bundle to send to the upstream aggregator
    return bundle;
  },
  8080,
  '0.0.0.0',
  () => {
    console.log('Proxying aggregator on port 8080');
  },
);

Readme

Keywords

none

Package Sidebar

Install

npm i bls-wallet-aggregator-proxy

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

17.7 kB

Total Files

22

Last publish

Collaborators

  • voltrevo