# This will return the latest version of GOcurl-shttps://go.dev/VERSION?m=text# Example responsego1.23.3time 2024-11-06T18:46:45Z
Download the Latest GO Tarball
# Downloading using the above example responsewgethttps://go.dev/dl/go1.23.3.linux-amd64.tar.gz# Example command if the above version is differentwgethttps://go.dev/dl/VERSION.linux-amd64.tar.gz
# Copy and paste the code below and run it within your terminal.sudoecho"[Unit]Description=Ronin NodeAfter=network.targetStartLimitIntervalSec=200StartLimitBurst=5[Service]Type=simpleRestart=on-failureRestartSec=5TimeoutSec=900User=rootNice=0LimitNOFILE=200000WorkingDirectory=/root/ronin/ExecStart=/root/ronin/cmd/ronin/ronin \ --gcmode archive --syncmode full \ --http --http.addr 0.0.0.0 --http.api eth,net,web3 --http.port 8545 \ --ws --ws.addr 0.0.0.0 --ws.port 8546 --ws.api eth,net,web3 \ --datadir /opt/ronin \ --port 30303 --networkid 2020 \ --discovery.dns enrtree://AIGOFYDZH6BGVVALVJLRPHSOYJ434MPFVVQFXJDXHW5ZYORPTGKUI@nodes.roninchain.comRestart=on-failureLimitNOFILE=1000000StandardOutput=journalStandardError=journal[Install]WantedBy=multi-user.target">/etc/systemd/system/ronin.service
Run Ronin Node
sudosystemctldaemon-reload# Refresh after systemd configuration changessudosystemctlenableronin.service# Enable ronin.service at start upsudosystemctlstartronin.service# Starts ronin.servicesudosystemctlstopronin.service# Stops ronin.servicesudosystemctlrestartronin.service# Restarts ronin.service
View Logs for Debugging
journactl-furonin.service-xe
Query Ronin Node
curl-H"Content-Type: application/json"-XPOST--data'{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'http://localhost:8545# Example response{"jsonrpc":"2.0","id":1,"result":"0x40e2d5"}