ScPrime Cloud Storage
  • Token Info
    • Tokenomics
    • Staking Information
    • Stake Tokens
    • SPF Information
      • Migrating SPF to DeFi on Solana
      • What are SPF?
      • What are SPF Part 2
  • Resources
    • At-a-Glance
    • Software
    • Project Timeline
    • Team
    • Telemetrics
    • Youtube
    • Whitepaper
    • Explorer
    • Consensus Mining (ASIC)
    • Logo and Style Guide
    • Source Code
  • Documentation
    • Xa-Miner
    • Wallet/DIY
  • Blog
  • Xa-Miner Storage Nodes
  • Menu Menu
Popular Search walletupgradeconsensus.dbtheupdate

DIY Getting Started

  • Storage Provider Overview
  • Provider Requirements/Configs
  • Port Forwarding Guide
  • Collateral
  • Licensing FAQ

Storage Provider Setup

  • Windows Command-Line Interface Guide (CLI)
  • Linux Setup
  • Synology/Docker Setup
  • Windows Supervisor-Lite Installation Guide
  • Linux Supervisor-Lite Installation Guide
  • Post-Announce Guide
  • Provider Settings
  • Windows Update Guide
  • Linux Update Guide – Basic
  • Linux Update Guide – Advanced
  • Linux Full License Software Installation Guide
  • Linux Full License Software Fresh Installation Guide
  • Uptime Robot Guide for ScPrime Storage Providers
  • Smart Contract Backups

Software/Wallets

  • Windows WebWallet Guide
  • Linux WebWallet Guide
  • Mac WebWallet Guide
  • Cold Wallet Generator Setup
  • Command-Line Interface (CLI)/Wallet Setup – Windows
  • Command-Line Interface (CLI)/Wallet Setup – Linux
  • Wallet Sweep
  • Transporter Guide

Tutorials

  • Linux Folder Provisioning Guide
  • Linux Metadata Guide
  • Linux Multiple Provider Guide
  • Windows to Linux Migration Guide
  • Windows UI to CLI Migration Guide

Information

  • Block 109,000 Fork Technical Issues
  • Grafana Provider Status Messages
  • Storage Provider Earnings
  • ScPrime Community FAQ
  • SCP Supply
  • SCP Supply Precision Change
  • May 15th Fork FAQ
View Categories

Windows Command-Line Interface Guide (CLI)

This guide will show you how to use the CLI to setup your provider instance so you can forgo using the UI altogether.

Here are a few things you will be required to do to get started…

  1. Download and install the ScPrime Command Line Version from here. Learn how to properly install and setup the software by reading this guide. It is ok if you already have or want to install the UI version instead, as it will have what you need for this guide.
  1. Ensure you have at least 500GB free space on your hard drives/external drives, etc.
  1. Know your hosting PC’s local IP address and try and make sure it’s a reserved on your router so it never changes (some routers call this IP Reservation, some call it DHCP Reservation, some may refer to it as a static IP address). While a dynamic IP address can work, any time you have to reboot the machine, it could change the address, causing issues with your host.
  1. You need to make sure you have port forwarding open on port 4282 and 4283. How and where you do this depends on your ISP. For myself, I just had to log into my ISP provided router and open those ports for the IP address of my hosting PC. There are thousands of router models, so you may need to chat with your ISP or manufacturer if you cannot find the forwarding menu. Check out our Port Forward guide for more info.
  1. Make sure your hosting PC is one you can leave on 24/7. While you can be offline for small periods of time for updates, being a storage provider requires some commitment because you are storing data that people need access to.
  1. Have enough collateral to cover the costs to start providing storage. Your collateral is only used as your storage usage increases. You will not need to cover all your capacity to start out. Covering 1-2TB worth of collateral to start should get you going, but you’ll want to monitor your provider as usage increases. For more info, check out this guide.

A note on collateral– Collateral is part of the exchange between a storage provider and a storage renter. Because of the decentralized nature of the network there has to be a mechanic in place to keep a ScPrime Storage Provider from just switching off their computer or faking the data. This mechanism is collateral. Collateral is put up to guarantee original data is stored and not tampered with.

Let’s get started

Note: This guide will assume the software is installed, the wallet is initialized and has SCP already in it for collateral. You can learn more about setting up the CLI software here.

You will want to find the directory where spd.exe and spc.exe are. It’s common that they are located in a directory similar to above. Now is a good time to set a system ‘path’ to this folder. It will make your career as a Storage Provider much easier as you can input spd and spc from any directory.

Pathing works differently within each OS. We will add Mac and Linux instructions soon as well. For Windows, you will want to search for ‘environmental variables’ and open ‘Edit the system environmental variables’.

Now click on Environment Variables

Select the ‘Path’ variable and click on Edit.

Click on New and then Browse. You will want to navigate to the directory discussed above using the Windows Explorer.

Once you see the path to your spd and spc files in the list, click OK. Your path is all set.

Starting the Daemon

Important note: Before starting up the ScPrime daemon, you need to ensure your metadata will be safe. If there is a sure way to corrupt your host’s metadata and lose all contracts and collateral, it’s by keeping your metadata on a drive that may run out of HD space. In the above example, I am telling the daemon to put the metadata in the default location which is c:\users\(username)\appdata\scprime. This is ok as I have over 100GB free on my system drive. However, if your system drive is lacking on free space, even a Windows Update download might be enough to fill your drive temporarily and prevent the host from writing to or accessing the metadata folder. If this happens, your host may be unrecoverable.

To avoid this, ensure your system drive has ample free space. How much space can be different for each instance, but 100GB is a safe bet. An easier route however, would be to put your metadata on a non system drive. To do this, swap out the default location above, with where you would like your metadata to be stored instead (see example below).

spd.exe -d d:\meta -M gctwh

Now let’s fire up the daemon. You will either need to know the directory where you want to store your ScPrime metadata. The directory will have folders like ‘consensus’, ‘host’, etc. Once found, use it as above with spd.exe. For this instance, it was:

spd.exe -d c:\users\parts\appdata\local\scprime -M gctwh

In this command, spd.exe is the program. -d points the program to the directory where the metadata is stored including consensus, wallets and file contracts. -M refers to which modules will be loaded at startup. This is where the CLI shines by letting you cut some fat in not loading modules you won’t be using

g = gateway (access to the p2p network, must be active) c = consensus (blockchain, must be active) t = transactionpool (must be active) w = wallet (must be active) h = host (must be active if you are providing storage)

Other modules include renter, explorer, miner but these are seldom needed based on the current network setup.

The ScPrime Daemon is now running.

Unlock Wallet

Open a new command prompt and type spc to see the status. You will want to make sure your host is synced at a block height above 109,000. You will also notice that your wallet is still locked.

To unlock the wallet type ‘spc wallet unlock’ and then enter your wallet password (which is most likely your passphrase seed unless you changed it to a password). You can copy/paste your 28 or 29 word seed in from a text file or you can manually type it. In either case it will not show up on the screen for privacy reasons. Once you have entered it fully, hit enter and you should return to the command prompt if entered correctly.

If you use the spc command again, you will see the wallet is now unlocked.

Note: It is very important that if you plan to run multiple provider instances, that each has a separate wallet. Sharing a single wallet among multiple instances will cause issues.

Adding Shared Folders

Now we will create our shared folder/folders.

You will have to create your shared folders first using your OS explorer. For this guide, I created a folder called ‘SCP’ on my D:\ drive and plan to store 1095 GB there. As shown above, the command is ‘spc host folder add (your drive and folder) (amount of storage offered).

It’s very important to leave at least 40 to 50 GB of the drive’s total capacity free to prevent any file corruption of the metadata.

The minimum recommended amount of storage you should offer is 500GB. Storing at least this much, as this guide suggests, allows you to earn incentives to host, along with your rent.

Storage Provider Settings

The project has created guidelines for storage providers to follow based on what is optimal for contracts between ScPrime and its clients. Setting up your host within these guidelines, as mentioned, allows you to earn incentives to enhance profitability as a Storage Provider. Incentives supercharge your earning capability based on desirable characteristics such as price, location, how reliable your storage computer is and performance.

Now let’s take a closer look at the settings;

Max Duration– This is fairly straight forward. It’s the maximum amount of time in weeks you want to allow a smart contract with a renter to last. You can set this to what you like. 13 is a good number to set it at. Speaking further about contracts, on the ScPrime network, these contracts are smart contracts. They are validated on the blockchain, and are the reason two unknown parties can transact with each other, like ScPrime hosts and renters do.

Command: spc host config maxduration [value]

Collateral Per TB/Month– As previously mentioned, this is the amount of collateral you will put up per month, per terabyte in collateral. It’s recommended to set your collateral 1x what you are charging for storage. For example, based on current recommendations of storage if your pricing is set at 15SCP, collateral should also be set at 15SCP.

Command: spc host config collateral [value]

Storage Per TB/Month– This is what you are charging per terabyte per month for storage. See the current recommendations for more info on what you should charge.

Command: spc host config minstorageprice [value]

Download Per TB– This is another ‘fee’ you can charge depending on your ISP. Download as a host is actually your ‘upload’ in terms of your ISP. If a renter downloads some of his data from your host, you will be ‘uploading’ it to him. Many internet plans commonly have upload limits, so if that is the case with your ISP, you may want to play around with this value. Recommended value is 1SCP.

Command: spc host config mindownloadbandwidthprice [value]

Upload Per TB– Similar to above, but this is really you ‘downloading’ in terms of your ISP. Most internet plans have high or unlimited download options, so this might be one you can charge very little for. Recommended value is 1SCP.

Command: spc host config minuploadbandwidthprice [value]

Collateral Budget– The total amount of SCP from your wallet that can be locked up in smart contracts at one time is your collateral budget. It is recommend to set this at 2KS (2000 SCP).

Command: spc host config collateralbudget [value]

Max Collateral- This setting is the maximum amount of SCP that can be locked into a single contract at one time. 50 SCP is the recommended amount currently.

Command: spc host config maxcollateral [value]

Putting it all together

Now we are ready to get your provider instance up and running using what we learned above about the different settings.

All the commands entered are within the recommended community settings to qualify for incentive payments. After each command is entered, you will get the confirmation the host setting is updated. You can ignore the ‘error’ message. It pops up because we aren’t loading the renter module on the daemon.

Now we will announce that our ‘host’ is ready to start taking on data from the network. Type in spc host announce and that’s it, you are now a Storage Provider!

AutoStart Daemon on Reboot (Optional)

Windows based Storage Providers can find their PC’s rebooting for a number of reasons. If a reboot happens when you’re away from the PC your provider instance is running on, you may find your uptime suffering until you can restart the SPD. Using Windows Task Scheduler, you can create a task where the daemon will restart upon reboot.

Open up Task Scheduler and click on ‘Create Task’.

Name the task something related to SPD and select ‘Run whether user is logged on or not’ and also tick the box next to ‘Run with highest privileges’. Then click on the ‘Triggers’ tab.

In the Triggers tab, click on ‘New’ and then select ‘At startup’ from the drop down menu. Also be sure to have the box next to ‘Enable’ checked and then click OK.

Now click on the ‘Actions’ tab and the click on ‘New’.

Select ‘Start a program’ as an action and then create a path to your (future) batch file. Usually it’s C:\users\username\scprime\start.bat. It’s best to set it to the folder that has spd.exe in it. Click OK and then OK again. Your task is created.

It’s also a good idea to check the task’s ‘Settings’ menu to ensure the ‘Stop the task if it runs longer than:’ setting is unchecked. Windows may default to this being checked, which will kill the spd daemon after it reaches the time specified.

Now it’s time to create the batch file.

Using Notepad or something similar, create a batch file as shown above. The paths may vary. You need to know on your PC where your spd.exe file is kept, as well as the various ScPrime folders like consensus, host, transactionpool, etc. When done, save it as ‘start.bat’ in the folder you chose in the Actions tab. You are all set up.

What are your Feelings

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Table of Contents
  • Windows Command-Line Interface Guide (CLI)
    • Let’s get started
    • Starting the Daemon
    • Unlock Wallet
    • Adding Shared Folders
    • Storage Provider Settings
    • Putting it all together
    • AutoStart Daemon on Reboot (Optional)

Developer

About
Logos
Contact

Resource

Software
Explorer
Docs/Guides
Whitepaper
Open Source

Legal

Privacy Policy
Licensed Provider Terms of Service

© Copyright - SCP, Corp. - Privacy Policy
Scroll to top Scroll to top Scroll to top

This site uses cookies. By continuing to browse the site, you are agreeing to our use of cookies.

OKLearn more

Cookie and Privacy Settings



How we use cookies

We may request cookies to be set on your device. We use cookies to let us know when you visit our websites, how you interact with us, to enrich your user experience, and to customize your relationship with our website.

Click on the different category headings to find out more. You can also change some of your preferences. Note that blocking some types of cookies may impact your experience on our websites and the services we are able to offer.

Essential Website Cookies

These cookies are strictly necessary to provide you with services available through our website and to use some of its features.

Because these cookies are strictly necessary to deliver the website, refusing them will have impact how our site functions. You always can block or delete cookies by changing your browser settings and force blocking all cookies on this website. But this will always prompt you to accept/refuse cookies when revisiting our site.

We fully respect if you want to refuse cookies but to avoid asking you again and again kindly allow us to store a cookie for that. You are free to opt out any time or opt in for other cookies to get a better experience. If you refuse cookies we will remove all set cookies in our domain.

We provide you with a list of stored cookies on your computer in our domain so you can check what we stored. Due to security reasons we are not able to show or modify cookies from other domains. You can check these in your browser security settings.

Google Analytics Cookies

These cookies collect information that is used either in aggregate form to help us understand how our website is being used or how effective our marketing campaigns are, or to help us customize our website and application for you in order to enhance your experience.

If you do not want that we track your visit to our site you can disable tracking in your browser here:

Other external services

We also use different external services like Google Webfonts, Google Maps, and external Video providers. Since these providers may collect personal data like your IP address we allow you to block them here. Please be aware that this might heavily reduce the functionality and appearance of our site. Changes will take effect once you reload the page.

Google Webfont Settings:

Google Map Settings:

Google reCaptcha Settings:

Vimeo and Youtube video embeds:

Other cookies

The following cookies are also needed - You can choose if you want to allow them:

Privacy Policy

You can read about our cookies and privacy settings in detail on our Privacy Policy Page.

Privacy
Accept settingsHide notification only