Due to us offering WebSocket RPC's publicly, this allows for the very easy creation of Chainlink nodes that use our public endpoints. To use buzzwords, this is a guide on how to set-up a node that connects to our EaaS platform (Ethereum-as-a-Service).
Our EaaS service is free, and will always be free.
Note: If you're using Windows 10, we greatly recommend to install the Windows Linux Subsystem. This subsystem will provide a native Linux terminal in Windows 10.
Firstly, verify Docker is installed and running:
docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
Windows: Open your cmd first, and enter
Ensure that the result of the command
docker psresults in the following column headers being shown. If you see entries underneath the columns, then you've got existing running containers. If you don't see the columns and get an error saying Docker isn't running, then restart Docker.
Create a new folder in your users home.
mkdir C:\Users\<Your Username Here>\.chainlink
Create a new file in the folder you just created, name the file
node.envand paste the following into it:
ETH_URL=wss://ropsten-rpc.linkpool.io/ws ROOT=/chainlink LINK_CONTRACT_ADDRESS=0x20fe562d797a42dcb3399062ae9546cd06f6328 ETH_CHAIN_ID=3 LOG_LEVEL=debug CHAINLINK_TLS_PORT=0 CHAINLINK_TLS_HOST=localhost
(Windows Only) Add
C:to your shared drives. Right click on Docker in the taskbar, click
Settings. Then browse to
Shared Drivesand tick the checkbox for
C:and then click
Run the Chainlink node:
docker run -it ^ --name chainlink ^ -p 6688:6688 ^ -v c:/Users/<Your Username Here>/.chainlink:/chainlink ^ --env-file=c:/Users/<Your Username Here>/.chainlink/node.env ^ smartcontract/chainlink:latest local node
docker run -it \ --name chainlink \ -p 6688:6688 \ -v ~/.chainlink:/chainlink \ --env-file=~/.chainlink/node.env \ smartcontract/chainlink:latest local node
Upon running step 5, you should see a Chainlink node booting. Enter your password for your newly created wallet, and enter your API password to be set.
Once entered, you should see the following lines being shown:
2018-11-22T16:18:27Z [INFO] Connecting to node wss://ropsten-rpc.linkpool.io/ws in 1s services/head_tracker.go:205 2018-11-22T16:18:28Z [INFO] Connected to node wss://ropsten-rpc.linkpool.io/ws services/head_tracker.go:214
That's it, you can now browse to
http://localhost:6688in your browser and login with the email/password you set as your API credentials in step 6.
To remove/stop your node, press
CTRL + C to stop it, then enter
docker rm chainlink to remove the container.
To run the node in the background, replace
-it in the command to
Although, you need to then pass the passwords for the Wallet/API via
parameters. You can do this by adding
-p <file path> -a <file path> onto
The configuration specified above for the easy guide is not recommended to be used in production.
For any nodes that will be used in production, please follow the official Chainlink guide on Enabling HTTPS Connections.