All Projects → Fiews → ChainlinkEthFailover

Fiews / ChainlinkEthFailover

Licence: MIT license
Use multiple Ethereum nodes for redundancy on your Chainlink node

Programming Languages

javascript
184084 projects - #8 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to ChainlinkEthFailover

chainlink-mix
Working with smart contracts with eth-brownie, python, and Chainlink.
Stars: ✭ 447 (+1688%)
Mutual labels:  chainlink
Chainlink
node of the decentralized oracle network, bridging on and off-chain computation
Stars: ✭ 2,680 (+10620%)
Mutual labels:  chainlink
full-blockchain-solidity-course-py
Ultimate Solidity, Blockchain, and Smart Contract - Beginner to Expert Full Course | Python Edition
Stars: ✭ 5,349 (+21296%)
Mutual labels:  chainlink
chainlink defi
Build a defi yield farmable dApp. Get started here.
Stars: ✭ 134 (+436%)
Mutual labels:  chainlink
brownie simple storage
No description or website provided.
Stars: ✭ 22 (-12%)
Mutual labels:  chainlink
kotal
Blockchain Kubernetes Operator
Stars: ✭ 137 (+448%)
Mutual labels:  chainlink
hardhat-starter-kit
A repo for boilerplate code for testing, deploying, and shipping chainlink solidity code.
Stars: ✭ 730 (+2820%)
Mutual labels:  chainlink
dungeons-and-dragons-nft
#chainlink #nft
Stars: ✭ 583 (+2232%)
Mutual labels:  chainlink

Chainlink ETH failover proxy

What does it do?

Instead of relying on a single connection between your Chainlink node and an ETH node (your own or EaaS), you can use this proxy to fail over between multiple ETH nodes. All endpoints are just URLs, so there's no need for the nodes to be on the local network.

Features

  • Automatic failover for any number of ETH nodes
  • Connection timeouts
  • Automatically checks if it's receiving block header notifications
  • Custom headers timeout through HEADERS_TIMEOUT environment variable (seconds)

How to use

Install (Docker)

Pull the image from Docker:

docker pull fiews/cl-eth-failover

Start the container: (Read more in Usage to learn how to set multiple endpoints)

docker run fiews/cl-eth-failover wss://cl-ropsten.fiews.io/v1/yourApiKey

Install (manually)

To start off, you need Yarn/Node.js installed (and git, for cloning the repo).

Clone repository and enter directory:

git clone https://github.com/OracleFinder/ChainlinkEthFailover.git && cd ChainlinkEthFailover/

Install dependencies:

yarn install

Make sure we set the correct permissions:

chmod +x ./index.js

Usage

This proxy will add any arguments to the script as ETH node endpoints.

docker run [-e HEADERS_TIMEOUT={}] fiews/cl-eth-failover [node-1] [node-2] [...] [node-n]

If not using Docker, replace docker run fiews/cl-eth-failover with node ./index.js

Example start command:

docker run fiews/cl-eth-failover wss://cl-ropsten.fiews.io/v1/myApiKey ws://localhost:8546/

This will output the following:

Adding endpoint wss://cl-ropsten.fiews.io/v1/myApiKey to list
Adding endpoint ws://localhost:8546/ to list
Server is listening on port :4000

Chainlink configuration

To use this proxy with your Chainlink node, just set the ETH_URL environment variable to port 4000 of the instance that's running the proxy. Eg. ws://localhost:4000/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].