Run KaspaNet - Rusty-Kaspa - Kaspad
To run the kaspa-rust node on an Ubuntu server with RPC enabled, you first need to have the Rust toolchain installed and the source code cloned from GitHub.
"Medium"
Prerequisites
Install Rust
If not already installed, run the official rustup installer command in your terminal
bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/env
rustup toolchain install stable
Install General Prerequisites
bash
sudo apt install curl git build-essential libssl-dev pkg-config
Clone the Repository
bash
git clone https://github.com
cd rusty-kaspa
"DigitalOcean"
Command to Run
Once in the rusty-kaspa directory, you can run the node with the following command for mainnet and RPC enabled (listening on all interfaces)
bash
cargo run --release --bin kaspad -- --utxoindex --rpclisten=0.0.0.0:16110 --rpclisten-borsh=0.0.0.0:17110
Key command-line arguments:
cargo run --release --bin kaspad
This builds and runs the kaspad binary in release mode.
--utxoindex
Required for wallet functionality and certain RPC calls.
--rpclisten=0.0.0.0:16110
This tells the node to listen for standard JSON RPC connections on port 16110 from any IP address (0.0.0.0).
You can change
0.0.0.0
to
127.0.0.1
if you only want to allow local connections.
--rpclisten-borsh=0.0.0.0:17110
This enables the high-performance Borsh-encoded RPC on port 17110.
"GitHub"
Additional Options
For testnet, add the
--testnet
flag.
For more RPC options and configurations, consult the GitHub repository documentation or the Kaspa WIKI.
Note:
Ensure you have the necessary firewall rules or port forwarding set up if you want the RPC port to be accessible from outside your local network.
"Kas.fyi"


Comments
Post a Comment
dont like me?