How to Deploy a Chainlink node with an Ethereum Client

Posted By : Shivam Grover | 31-Aug-2020

What is Chainlink?

 

ChainLink is a network(decentralized) of computing nodes. It provides us information/data from off-blockchain sources to on blockchain smart contracts with the help of oracles. It bridges the gap between smart-contracts on blockchain and real-world applications.

 

The data between the blockchain and the real world is known as “oracles”.

 

Developed by a company named SmartContract founded in 2014.

 

 

Prerequisites

 

  • Docker- CE
  • PSQL Database
  • Terminal (Command Line)

 

Installing Docker

 

> curl -sSL https://get.docker.com/ | sh

> sudo usermod -aG docker $USER

> Exit

# log in again

 

Setting Up an Ethereum Client

 

To run a ChainLink full node, you first need an Ethereum client with a websocket connection(ws/wss).

 

Download the latest eth client version from dockerhub:

 

docker pull ethereum/client-go:latest

 

Run the container:

 

docker run --name eth -p 8546:8546 -v ~/.geth:/geth -it ethereum/client-go --syncmode fast --ws --ipcdisable --wsaddr 0.0.0.0 --wsorigins="*" --datadir /geth

 

Once the Eth node is synced completely we can run the chainlink node.

 

Create an Environment File

 

mkdir ~/.chainlink

 

echo "ROOT=/chainlink

LOG_LEVEL=debug

ETH_CHAIN_ID=1

CHAINLINK_TLS_PORT=0

SECURE_COOKIES=false

GAS_UPDATER_ENABLED=true

ALLOW_ORIGINS=*" > ~/.chainlink/.env

 

Now run the following command to add the Ethereum WebSocket URL to the environment file.

 

echo "ETH_URL=ws://$ETH_CONTAINER_IP:8546" >> ~/.chainlink/.env


 

Run the following command to add the PSQL Databases URL to the environment file

 

echo "DATABASE_URL=postgresql://$USERNAME:[email protected]$SERVER:$PORT/$DATABASE" >> ~/.chainlink-ropsten/.env

 

Start the Chainlink Node

 

Now you can run the Docker image:

 

cd  docker run -p 6688:6688 -v ~/.chainlink:/chainlink -it --env-file=.env smartcontract/chainlink local n


 

The first time running this docker image(smartcontract/chainlink ), it will ask for a password. This password will be your wallet password that you can use to unlock the keystore file generated for you. Then, you'll see a prompt to enter an API Email-address and Password.

 



 

 

Now you connect to your Chainlink node's user interface by opening  http://localhost:6688 in your web browser.

 

That’s it. Your Chainlink full node is all set now and you can now easily interact with the smart-contracts on chainlink network and the Blockchain. Now, you can add some jobs and play around with the node

 

About Author

loading
Shivam Grover

Shivam is a DevOps Enginner. He has a great knowledge in Cloud technologies and DevOps tools. Experienced with CICD implementation and microservices architecture.

Leave a Comment

Name is required

Comment is required

Recaptcha is required.

260941 Comments To “How to Deploy a Chainlink node with an Ethereum Client”

  1. Your comment is awaiting moderation.

    Alignment dpl.npxe.blockchain.oodles.io.vnb.lv stain: examination; descriptions, [URL=http://foodfhonebook.com/zestril/]zestril acinopril bula ciclobenzaprina 10mg comprimidos[/URL] [URL=http://aawaaart.com/lariam/]lariam[/URL] [URL=http://ezhandui.com/cialis-strong-pack-60/]buying cialis strong pack 60 online[/URL] [URL=http://herbalfront.com/pill/co-amoxiclav/]apotheke co-amoxiclav kaufen[/URL] co amoxiclav buy online [URL=http://kafelnikov.net/acticin-topical/]in mexico acticin-topical[/URL] [URL=http://gasmaskedlestat.com/prasugrel/]prasugrel without dr prescription usa[/URL] [URL=http://friendsofcalarchives.org/lasix/]lasix online[/URL] [URL=http://globallifefoundation.org/item/prednisone/]buy cheap prednisone[/URL] [URL=http://shawntelwaajid.com/priligy/]priligy[/URL] [URL=http://shawntelwaajid.com/artane/]artane tablets 2[/URL] [URL=http://happytrailsforever.com/triomune/]triomune[/URL] [URL=http://oliveogrill.com/cialis-coupon/]cialis coupon[/URL] [URL=http://alanhawkshaw.net/prednisone-without-dr-prescription/]prednisone 20 mg[/URL] [URL=http://thegrizzlygrowler.com/brand-levitra-bottled/]brand levitra bottled[/URL] [URL=http://shawntelwaajid.com/duolin/]duolin[/URL] whereas groin, cling zestril price of lariam lowest cialis strong pack 60 prices co amoxiclav for sale acticin topical online usa cost of prasugrel tablets buy furosemide prednisone coupons discount priligy artane triomune online usa cialis uk prescription prednisone 20 mg prednisone for dogs brand levitra bottled for sale duolin stability contractures, circle: http://foodfhonebook.com/zestril/ cheapest zestril http://aawaaart.com/lariam/ lariam without dr prescription http://ezhandui.com/cialis-strong-pack-60/ where to buy cialis strong pack 60 online http://herbalfront.com/pill/co-amoxiclav/ lowest price for co amoxiclav http://kafelnikov.net/acticin-topical/ acticin topical http://gasmaskedlestat.com/prasugrel/ prasugrel oral http://friendsofcalarchives.org/lasix/ lasix to buy online no prescription lasix http://globallifefoundation.org/item/prednisone/ purchase prednisone http://shawntelwaajid.com/priligy/ where to buy priligy http://shawntelwaajid.com/artane/ artane tablets 2 http://happytrailsforever.com/triomune/ triomune on internet http://oliveogrill.com/cialis-coupon/ generic 10mg cialis cialis http://alanhawkshaw.net/prednisone-without-dr-prescription/ prednisone without dr prescription usa http://thegrizzlygrowler.com/brand-levitra-bottled/ brand levitra bottled without dr prescription http://shawntelwaajid.com/duolin/ duolin buy online generic duolin canada pharmacy women\'s atopic ablation carcinogens.

Request For Proposal

By using this site, you allow our use of cookies. For more information on the cookies we use and how to delete or block them, please read our cookie notice.

We would love to hear from you!

Oodles | Blockchain Development Company

Please enter a valid Phone Number

Please remove URL from text

Recaptcha is required.