Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 1.65 KB

README.md

File metadata and controls

54 lines (43 loc) · 1.65 KB

LuksOracle

Chainlink oracle on Lukso blockchain which supports API uint256 GET requests.

Starting the Chainlink node on Lukso with WSS RPC URL:

  1. Clone this repository.
git clone [email protected]:LuksOracle/chainlink-lukso.git
  1. Start PostgreSQL server instance with Docker

Enter directory

cd chainlink-lukso 

Create docker instance with password

sudo docker run --name cl-postgres -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -d postgres
  1. Test Chainlink Node v2.2.0 with TOML files

Start Chainlink Node after PostgreSQL server is running (modify config.toml if you wish to modify network parameters)

sudo docker run --platform linux/x86_64/v8 --name chainlink -v $HOME/chainlink-lukso:/chainlink -it -p 6688:6688 --add-host=host.docker.internal:host-gateway smartcontract/chainlink:2.2.0 node -config /chainlink/config.toml -secrets /chainlink/secrets.toml start

⚠️ Make sure you also install PostgreSQL: ⚠️

sudo apt-get -y install postgresql

⚠️ Note: if a port is being used, end the process in the port with: ⚠️

sudo lsof -i tcp:5432

[SHOWS PROCESS ID IN TCP PORT 5432, EXAMPLE: 25537]:

sudo kill 25537

⚠️ Note: if there is an issue with your node, run the following (will wipe Docker and PostgreSQL files for a clean node): ⚠️

sudo docker rm -vf $(sudo docker ps -aq)
sudo docker rmi -f $(sudo docker images -q)
  1. Interact with Chainlink node GUI in web browser URL:

http://localhost:6688/

Reference

Running a Chainlink Node - Configure your node

https://docs.chain.link/chainlink-nodes/v1/running-a-chainlink-node