Socket
Socket
Sign inDemoInstall

@fluencelabs/aqua-eth-gateway

Package Overview
Dependencies
524
Maintainers
6
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @fluencelabs/aqua-eth-gateway

Gateway represents access to different Ethereum API providers (infura, alchemy). It can be used with Web3 client and load balancing requests between different providers.


Version published
Maintainers
6
Created

Readme

Source

Aqua Ethereum Gateway

Gateway represents access to different Ethereum API providers (infura, alchemy). It can be used with Web3 client and load balancing requests between different providers.

Installation

npm install -g @fluencelabs/aqua-eth-gateway

Example

aqua-eth-gateway path/to/config.json

where config is:

{
  "providers": [
    "https://goerli.infura.io/v3/your-api-key",
    "https://eth-goerli.g.alchemy.com/v2/your-api-key"
  ],
  "mode": "random",
  "relay": "fluence/peer/address",
  "serviceId": "eth-rpc serviceId",
  "port": 3000,
  "counterServiceId": null,
  "counterPeerId": null,
  "quorumServiceId": null,
  "quorumPeerId": null,
  "quorumNumber": null,
  "quorumTimeout": null,
  "requestTimeout": null
}

counterServiceId and counterPeerId is credentials to counter service for round-robin mode. Will be used local counter if undefined. quorumServiceId and quorumPeerId is credentials to counter service for round-robin mode. Will be used local counter if undefined. quorumNumber is 2 by default. quorumTimeout is how long we will wait for all responses requestTimeout is how long we will wait for aqua request

Mode

random - choose providers randomly round-robin - choose providers in circle order quorum - call all providers and choose the result that is the same from >= quorumNumber providers. Or return an error.

FAQs

Last updated on 23 Feb 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc