Klaytn RPC endpoint: Difference between revisions
From Chainlink Community Wiki
(Created page with "left|thumb == This is a general guide on deploying an Klaytn RPC endpoint for your Chainlink Node(s). == [https://docs.klaytn.foundation/installation-guide Official Klaytn Docs are available here] {{:Box-round|title=NOTE|This document assumes base operating system is Debian 11}} == Klaytn RPC Endpoints: == * Websocket ** <code>ws://<your_ip_address>:8552</code> * HTTP ** <code>http://<your_ip_address>:8551</code> ==Optional: Download S...") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
** <code>http://<your_ip_address>:8551</code> | ** <code>http://<your_ip_address>:8551</code> | ||
== Install Dependencies == | |||
Before we can get our Ethereum node running, we need to install some necessary software. | |||
we'll install some packages that we'll need or will at least be handy to have. | |||
<code>sudo apt install -y curl wget jq node-ws telnet traceroute npm htop tree</code> | |||
Line 26: | Line 32: | ||
Once downloaded, you will want to uncompress the tarball in the directory you set as your `DATA_DIR` in your `ken-linux-amd64/conf/kend.conf` configuration file. | Once downloaded, you will want to uncompress the tarball in the directory you set as your `DATA_DIR` in your `ken-linux-amd64/conf/kend.conf` configuration file. | ||
In this example, it would be /home/<username>/kend/data | In this example, it would be <code>/home/<username>/kend/data</code> | ||
Line 41: | Line 47: | ||
<pre style="white-space:pre-wrap; width:100%; border:1px solid lightgrey; background:black; color:white;">[Unit] | <pre style="white-space:pre-wrap; width:100%; border:1px solid lightgrey; background:black; color:white;">[Unit] | ||
Description=Klaytn Full Node | |||
After=network.target auditd.service | |||
Wants=network.target | |||
[Service] | |||
Type=simple | |||
User=<username> | |||
WorkingDirectory=~/kend | |||
TimeoutStartSec=0 | |||
TimeoutStopSec=120 | |||
ExecStart=/home/<username>/ken-linux-amd64/bin/kend start | |||
Restart=always | |||
RestartSec=10s | |||
[Install] | |||
WantedBy=multi-user.target | |||
RequiredBy=swarm.service | |||
Alias=klaytn-node.service</pre> |
Latest revision as of 17:45, 23 November 2022
This is a general guide on deploying an Klaytn RPC endpoint for your Chainlink Node(s).
Official Klaytn Docs are available here
NOTE
This document assumes base operating system is Debian 11
Klaytn RPC Endpoints:
- Websocket
ws://<your_ip_address>:8552
- HTTP
http://<your_ip_address>:8551
Install Dependencies
Before we can get our Ethereum node running, we need to install some necessary software.
we'll install some packages that we'll need or will at least be handy to have.
sudo apt install -y curl wget jq node-ws telnet traceroute npm htop tree
Optional: Download Snapshot
Once downloaded, you will want to uncompress the tarball in the directory you set as your `DATA_DIR` in your `ken-linux-amd64/conf/kend.conf` configuration file.
In this example, it would be /home/<username>/kend/data
Download ken tarball
Create Klaytn Node Service
sudo nano /etc/systemd/system/klaytn-node.service
[Unit] Description=Klaytn Full Node After=network.target auditd.service Wants=network.target [Service] Type=simple User=<username> WorkingDirectory=~/kend TimeoutStartSec=0 TimeoutStopSec=120 ExecStart=/home/<username>/ken-linux-amd64/bin/kend start Restart=always RestartSec=10s [Install] WantedBy=multi-user.target RequiredBy=swarm.service Alias=klaytn-node.service