The New Method to Set Up a Chainlink Oracle Node on Google Cloud Platform
Data Slayer Data Slayer
181K subscribers
3,670 views
0

 Published On Aug 26, 2022

This tutorial will show you step by step exactly how to set up and run your own Chainlink Oracle node on Google Cloud Platform.


Outline
Intro 0:00 - 0:08
Node Provider 0:08 - 0:20
Earning Money 0:20 - 1:00
What is an Oracle 1:00 - 1:30
Determinism 1:30 - 2:30
Random Numbers 2:30 - 2:50
Betting on a Sport Match 2:50 - 4:03
Open Source 4:03 - 4:11
Decentralized 4:11 - 4:20
Performance Audits 4:20 - 4:33
Using ChainLink 4:33 - 4:50
Google Cloud Platform 4:50 - 5:20
Setup PostgreSQL 5:20 - 6:11
Create Virtual Machine 6:11 - 7:25
Configure Database 7:25 - 9:34
Setup ChainLink Software 9:34 - 11:50
Setup Ethereum Node 11:50 - 13:40
Configure Database Schema 13:40 - 15:23
Test PostgreSQL Connection 15:23 - 16:35
Start ChainLink Instance 16:35 - 19:35
Create a Keystore Password 19:35 - 20:41
Access the ChainLink Client 20:41 - 22:10
Install NGINX 22:10 - 24:45
ChainLink Web App 24:45 - 25:20


Commands

Elevate to Root
sudo su -

Install Docker on Ubuntu

curl -sSL https://get.docker.com/ | sh
sudo usermod -aG docker $USER
exit

Make a ChainLink Folder
mkdir ~/.chainlink

Create an Account (Ethereum Node) on Alchemy
https://www.alchemy.com/
https://dashboard.alchemyapi.io/

Install Light Weight Postgres Client
sudo apt install -y postgresql-client

Test Database Connection to Google Cloud SQL
pg_isready -d chainlink -h 35.223.13.41 -p 5432 -U postgres

Create .env config file
ROOT=/chainlink
LOG_LEVEL=debug
ETH_CHAIN_ID=1
CHAINLINK_TLS_PORT=0
SECURE_COOKIES=false
ALLOW_ORIGINS=*
ETH_URL=
DATABASE_URL=


Download and Run the Chain Link Node via Docker
docker run -p 6688:6688 -v ~/.chainlink:/chainlink -it --env-file=.env smartcontract/chainlink:1.7.0-root local n

Install NGINX
apt-get install nginx

Modify NGINX Server Block

location ~ / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://localhost:6688;
}

Keystore Credential Requirements
- Don’t use numbers
- 4 uppercase letters
- Greater than 16 chars

DEFINITION
Blockchain oracles are entities that connect blockchains to external systems, thereby enabling smart contracts to execute based upon inputs and outputs from the real world.

Oracles provide a way for the decentralized Web3 ecosystem to access existing data sources, legacy systems, and advanced computations. Decentralized oracle networks (DONs) enable the creation of hybrid smart contracts, where on-chain code and off-chain infrastructure are combined to support advanced decentralized applications (dApps) that react to real-world events and interoperate with traditional systems.

#chainlink #web3

______________________________________________________________________
If you’re looking to ship your nocode project faster or just want to get smarter about the emerging nocode/lowcode trend then join the only community for nocoders who are serious about building better, faster, products.

State Change Pro (https://statechange.ai/) is a community of seasoned veterans and industry CTOs who are available to work through your nocode questions together.

We’ve helped hundreds of business owners compose solutions faster using the latest and greatest nocode tools.

We have direct relationships with dozens of nocode platforms and are friends with many of the founders. We’ve worked with hundreds of Fortune 500 companies.

If you want to stop wasting time and finally deliver your project to your customers then click the link in the description below and join the only nocode community for builders who want to ship.

https://statechange.ai/

show more

Share/Embed