Sui Node Istallation Guide
New gem?
A sensational L1 blockchain that uses the Rust programming language and the Move programming language to write smart contracts, which makes it special.
Let’s take a look in more detail.
Sui is the first permissionless Layer 1 blockchain designed from the ground up to enable creators and developers to build experiences that cater to the next billion users in web3
Sui is written in Rust and supports smart contracts written in the Move programming language to determine which assets can be owned.
Move is safe and expressive, and its type system and data model naturally supports the concurrent consistency/execution strategies that make Sui scalable.
More details via link.
Server rental & connection
Rent a server, for example, on Contabo. The following characteristics are suitable for: 2 CPU, 8GB RAM, & the Ubuntu 20.04 OS.
To connect to the server on Windows, use PuTTy.
- Paste server IP to “Host Name” and click “Open”
- In the opened tab, write the command:
root
; - Press “Enter” and paste the password from the server, then “Enter”
On macOS, launch the Terminal.
- Enter the server with the command (change IP_ADDRESS to the server IP):
ssh root@IP_ADDRESS
- Next, enter “yes”, press “Enter,” and paste the server password (the icon with the key will hide the entered password). Press “Enter”.
Installing node
Our guide is based on NodesGuru guide.
After connection to the server, enter commands:
sudo apt update && sudo apt install wget -ysudo apt full-upgradewget -O sui.sh https://api.nodes.guru/sui.sh && chmod +x sui.sh && ./sui.sh
Installation is not fast, it took us about 30 minutes. After successful installation, you’ll see this:
Also, you can check by command:
curl -s -X POST http://127.0.0.1:9000 -H ‘Content-Type: application/json’ -d ‘{ “jsonrpc”:”2.0", “method”:”rpc.discover”,”id”:1}’ | jq .result.info
Then go to the Discord channel to #node-ip-application & paste your RPC: http://IP_ADDRESS:9000.
NFT creation
To create a wallet, enter the command:
sui client
Answer “y” for the first question & “Enter” for the second
Then check your wallets address:
sui keytool list
Ask for tokens in the Discord #devnet-faucet channel.
Then create your NFT by command:
sui client create-example-nft
You can check your NFT on the website, by entering your wallet.
NFT often disappears, so from time to time we request tokens once again and create NFT.
Update 18.08.2022
Connect to the server and enter the commands one by one:
systemctl stop suidrm -rf /var/sui/db/* /var/sui/genesis.blob $HOME/suisource $HOME/.cargo/envcd $HOMEgit clone https://github.com/MystenLabs/sui.gitcd suigit remote add upstream https://github.com/MystenLabs/suigit fetch upstreamgit checkout -B devnet --track upstream/devnetcargo build -p sui-node -p sui --releasemv ~/sui/target/release/sui-node /usr/local/bin/mv ~/sui/target/release/sui /usr/local/bin/wget -O /var/sui/genesis.blob https://github.com/MystenLabs/sui-genesis/raw/main/devnet/genesis.blobsystemctl restart suid
Useful commands
Check node:
curl -s -X POST http://127.0.0.1:9000 -H 'Content-Type: application/json' -d '{ "jsonrpc":"2.0", "method":"rpc.discover","id":1}' | jq .result.info
Check logs:
journalctl -u suid -f -o cat
Restart node:
sudo systemctl restart suid
Delete node:
sudo systemctl stop suidsudo systemctl disable suidrm -rf ~/sui /var/sui/ /usr/local/bin/sui*rm /etc/systemd/system/suid.service
Filling out the form
Apply until August 15
Complete the form via the link.
If you have any questions about completing the form, you can ask in our chat
WhiteList Official | Chat | Twitter | OTC