PowerShell is the recommended shell (not Command Prompt)
If you are running a node from home you will likely need to port forward.
Port Forwarding - This example does not detail port forwarding.
Open PowerShell and enter ipconfig
Use the IPv4 Address displayed as the internal IP when opening a port on your router.
In this example let’s open port 12000
for both internal and external.
Install safeup and the node binary
Using PowerShell install safeup
: (this only needs to be done once).
iex (Invoke-RestMethod -Uri "https://raw.githubusercontent.com/maidsafe/safeup/main/install.ps1")
Once installed restart PowerShell.
Get the node binary
The binary version that you need will be listed in the instructions for the network that you wish to join.
safeup node --version 0.105.2
(change the version number as needed).
Start the node
safenode --port 12000
Closing the PowerShell will kill your node.
That’s it your node should be running.
NB. Your node will likely stop if your PC is set to hibernate after a specific time.
To check how things are going you can do several things.
PowerShell Get-Process | Where-Object {$_.ProcessName -like "*safenode*"}
this will show you if the process is running.
Resource Monitor : Type resmon
in the Start menu and hit Enter. Go to the “CPU” tab and search for safenode
in the list of processes, select it and you can more easily view cpu, network, memory etc.
Task Manager : Press Ctrl+Shift+Esc
to open Task Manager, then look for safenode
in the “Processes” tab.
To see your nodes files open File Explorer
, select Local Disk (C:)
then Users
followed by your <username>
.
Make sure that hidden Hidden items
is selected in the view tab.
Select AppData
then Roaming
then safe
followed by node
Here you will see your node.
To be sure that your node is receiving chunks
open the record_store
folder, this is where you are storing other users data, it should get files pretty soon if all is well.
After some time has passed you should receive rewards.
To see your balance make sure that you have the relevant client
installed.
safe wallet balance --peer-id <PeerID>
(Replace <PeerID>
with that of the node you wish to check the balance of)
Your nodes PeerID is the name of its folder.
Cleanup
To kill your node Get-Process safenode | Stop-Process
For a fresh start or when joining a new network: Remove-Item -Recurse -Path "C:\Users\kyte7\AppData\Roaming\safe"