Actions

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
Line 41: Line 41:


<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
Description=Klaytn Full Node
After=network.target auditd.service
After=network.target auditd.service
Wants=network.target
Wants=network.target
 
[Service]
[Service]
Type=simple
Type=simple
User=<username>
User=<username>
WorkingDirectory=~/kend
WorkingDirectory=~/kend
TimeoutStartSec=0
TimeoutStartSec=0
TimeoutStopSec=120
TimeoutStopSec=120
ExecStart=/home/<username>/ken-linux-amd64/bin/kend start
ExecStart=/home/<username>/ken-linux-amd64/bin/kend start
Restart=always
Restart=always
RestartSec=10s
RestartSec=10s
 
[Install]
[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target
RequiredBy=swarm.service
RequiredBy=swarm.service
Alias=klaytn-node.service</pre>
Alias=klaytn-node.service</pre>

Revision as of 17:39, 23 November 2022

Klaytn-logo.png

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



Optional: Download Snapshot

baobab (testnet) snapshots

cypress (mainnet) snapshots

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

Grab the latest release here


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