0.0.16 • Published 7 months ago

@fluencelabs/aqua-eth-gateway v0.0.16

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
7 months ago

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
}

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 3 by default.

Mode

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

0.0.17

7 months ago

0.0.18

7 months ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.15

1 year ago

0.0.16

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago