Installation (Linux)
Automatic Installation
source <(curl -s https://raw.githubusercontent.com/NodersUA/Scripts/main/sui/sui_testnet.sh)Manual
# Update the repositories and developer packages
sudo apt-get update && sudo apt-get install -y --no-install-recommends tzdata libprotobuf-dev ca-certificates build-essential libssl-dev libclang-dev pkg-config openssl protobuf-compiler git clang cmake -y# Open ports
ufw allow 9000
ufw allow 9184# Install Rust
sudo curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env# Create a directory for database, genesis.blob, fullnode.yaml
mkdir $HOME/.sui# Clone GitHub SUI repository
cd $HOME
cd $HOME && git clone https://github.com/MystenLabs/sui.git
cd sui && git pull
git checkout testnet-0.33.1# Make a copy of fullnode.yaml and update path to db and genesis state file. (One command)
cp $HOME/sui/crates/sui-config/data/fullnode-template.yaml $HOME/.sui/fullnode.yaml
sudo tee /root/.sui/fullnode.yaml > /dev/null << END
# Update this value to the location you want Sui to store its database
db-path: "/root/.sui/db"
network-address: "/dns/localhost/tcp/8080/http"
metrics-address: "0.0.0.0:9184"
# this address is also used for web socket connections
json-rpc-address: "0.0.0.0:9000"
enable-event-processing: true
genesis:
# Update this to the location of where the genesis file is stored
genesis-file-location: "/root/.sui/genesis.blob"
authority-store-pruning-config:
num-latest-epoch-dbs-to-retain: 3
epoch-db-pruning-period-secs: 3600
num-epochs-to-retain: 1
max-checkpoints-in-batch: 200
max-transactions-in-batch: 1000
use-range-deletion: true
p2p-config:
seed-peers:
- address: "/dns/sui-rpc-pt.testnet-pride.com/udp/8084"
- address: "/dns/sui-rpc-testnet.bartestnet.com/udp/8084"
- address: "/ip4/38.242.197.20/udp/8080"
- address: "/ip4/178.18.250.62/udp/8080"
- address: "/ip4/162.55.84.47/udp/8084"
- address: "/dns/wave-3.testnet.n1stake.com/udp/8084"
- address: "/ip4/162.55.84.47/udp/8084"
- address: "/dns/wave-3.testnet.n1stake.com/udp/8084"
ENDLast updated
Was this helpful?