Force folder remove

Generally, in case you run into folder data corruption or inaccessibility you need to send this api POST call:

(From CLI and not from inside the UI)

curl -A "SiaPrime-Agent" -u "":<apipassword> --data "path=<the shared folder path>&force=true" localhost:4280/host/storage/folders/remove

to force removal of that folder from the shared folders list. Replace the <apipassword> with the string you can find in the apipasssword file and the <the shared folder path> with the path it is listed in the host folder list.

But that (the&force=true part of the post data) should be used only after trying to remove folder “normally” with spc or ui terminal, that is suggest first try the ways without the force.

Note that:

is the api endpoint

ScPrime Wallet batch file and additional information

Windows 8/10 info:

Locate your ScPrime wallet.
Right click and make a new text document then edit it to include the following:

start /MIN “ScPrime daemon” %LocalAppData%\Programs\SiaPrime-UI\resources\bin\spd -d %AppData%\SiaPrime-UI\siaprime -M gctwh
start “ScPrime UI” %LocalAppData%\Programs\SiaPrime-UI\SiaPrime-UI.exe

Then do a file/save as
change the type to “all files”
then give the file a name that ends in .bat such as test.bat

Now we’re going to do the steps to have this be included in your computer’s startup.

Right click on the new.bat file you made and select copy from the drop downs.

Press Start, type Run, and press Enter.
In the Run window, type shell:startup
Press enter. This will open the Startup folder.

Then right click inside the startup folder and right click and paste a shortcut to your bat file.



Additional information:

To explain the spd start line:

start launches a new process
/MIN sets the window state to minimized (optional)
“ScPrime daemon” is the title of the window where the spd daemon runs
%LocalAppData%\Programs\SiaPrime-UI\resources\bin\spd is the path to the spd executable. This particular is the default location if you have the UI installed.
-d %AppData%\SiaPrime-UI\siaprime specifies the path to the node metadata directory. Again, this particular is the default if you installed the UI. You have to specify the right path if you want the metadata directory reside somewhere else (for example, different drive would look something like -d D:\scprime)
-M gctwh is the modules list. g=gateway c=consensus t=transactionpool w=wallet and h=host
That gctwh is the minimum set of modules required for hosting. The default (if you don’t specify) is gctwhr meaning the renter module added to all the hosting modules. You can omit the h for renting nodes, then the daemon does not start the host module.

If you do not need the UI or anything else after launching the daemon you can omit the start /MIN “ScPrime daemon” part.


you can put the autounlock password in that batch file too.
Add a line before the start /MIN “ScPrime daemon” %LocalAppData%\Programs\Si…
And put @SET SCPRIME_WALLET_PASSWORD=<your wallet unlock password> in it.
the @ means do not display that line,
SET means set the environment variable.
SCPRIME_WALLET_PASSWORD is the name of the env variable.
<your wallet unlock password> is your wallet unlock password without quotation or any other (< and >) characters not belonging to the password.
And again, I suggest to set a custom password to your wallet so you don’t need to put your seed in that file.
The local (custom) password for your wallet is valid only on the instance you put it, if someone copies your batch file the password found in there won’t work on any other machine



Linux info:


Write a small batch file, there insert your commands there and start the file when booting the computer.

All variables are then valid only within the shell of the call.

Here is an example of a file: Place the location of the file in the /etc/rc.local so that the host will be started on startup ….

Example of file you can edit and use.


HOME=/Directory/where/ScPrime/Saved/SIA # <– change /Directory/where/ScPrime/Saved/SIA
cd $ HOME
date >> ./start_spd.log

# change Especially_secure_password !!
export SCPRIME_WALLET_PASSWORD=”Especially_secure_password”
# start with user right –> change not_privileged_user !!
su not_privileged_user -c “./spd -M gctwh -d ScPrimeDB/ >> ./start_spd.log &”

# have fun!

Useful Hosting Commands

spc host -v Detailed current settings.
spc host config acceptingcontracts [true | false] Enables / disables new contracts
spc host config maxduration [26208] Maximum contract duration in blocks. Host accepts anything below
spc host config maxdownloadbatchsize [17825792] Maximum number of bytes allowed in a single download request
spc host config netaddress [] Specify host announce address and port or dynamic address
spc host config windowsize [144] Time to provide storage proof at contract end (blocks). Increase to ensure you don’t miss storage proofs but renters may avoid the host
spc host config collateral [10000SCP] Amount of SCP per TB/month
spc host config collateralbudget [50000SCP] Maximum total collateral put up for all contracts
spc host config maxcollateral [25000SCP] Maximum collateral put up for any single contract
spc host config mincontractprice [20mS] Minimum contract fee to cover transactions fees
spc host config minstorageprice [5000SCP] Storage price per TB/month
spc host config mindownloadbandwidthprice [100SCP] Download bandwidth price
spc host config minuploadbandwidthprice [100SCP] Upload bandwidth price
spc host announce Broadcast a new host to the network or re-announce an existing host

Hosting Profitability

The core protocol includes a sophisticated scoring system that heavily weights toward high uptime/availability. The ScPrime software direction includes additional scoring of performance and capability to match customers with the best possible storage based on use case. Better performing host nodes will earn a higher % of the revenue sharing program. Nodes can apply for bonus incentives here

Contracts as SCP Price Changes

Contracts are formed at the going rate and are locked until the agreed upon expiration. Our business customers are unaffected by underlying price changes while hosts accept the risk of coin price volatility. Storage nodes typically adjust pricing to match current exchange rates.

Host Liability

In the United States; hosts are considered safe from user submitted content under section 512 of the Digital Millennium Copyright Act. Storage providers, websites and ISPs (Internet Service Providers) are considered protected under 230(c)(1) of the Communications Decency Act. No cases in the US have specifically accused websites of CP. Section 230©(1) is considered a “safe harbor” but has never been tried in a court of law.

In the European union; hosts may be protected by Directive 2000/31/EC as long as they meet certain criteria.

For additional information, contact a legal professional.


Host nodes are the backbone of our cloud and allow anyone to turn extra hard drive space into income with no little additional cost. In addition to fees earned when the space is used, nodes also share in revenues generated from our business customers.Hosting takes up few resources on a dedicated computer platform but the configuration needs to remain online and accessible as close to 24/7 as possible