Blockchain Enthusiast (qq:53016353)
1. Download and run the Smart contract client.
Smart Contract D is a process that runs in the background and is responsible for all functions.
Smart contract C is a command-line tool that pushes commands to smart contract D.
After the download is complete, the smart contract places all the files in one folder. Smart Contract D will create the relevant folder for the user database under this folder. After the blockchain synchronization is complete, the size of this folder is approximately 3GB. The completed Command line Directory page is shown in the figure.
Both the smart contract D and the smart Contract C have a comprehensive help menu that you can use to type:-H to query the Help function. All modules and functions can also be queried through the Smart Contract D modules tool.
The most common feature is to select the modules that need to be run and select the interfaces that need to be used. In this system there are 3 interfaces to be aware of: API interface, RPC interface, and host interface. For a detailed explanation of the interface, see the menu bar. If you only need to provide storage space to the network (no digging and renting space), you need to enter: Smart contract d-m Gctwh. For Windows users, make sure that you run smart contract D in Administrator mode.
After the startup is complete, you will see that smart contract D has created some new folders. In most cases, users do not need to view these folders, but deleting them may result in data loss.
2. Set up your wallet
When Smart contract D runs, Smart contract C is the primary tool for users to use the Smart contract service. By running Smart contract C You can query the blockchain status, or you can enter the smart contract c-h to query more features through the menu.
As can be seen from the diagram, the current client is updated to block 18,000, and the complete blockchain is not fully synchronized. You can follow the links below to
You can get more information by checking out the smart contract C Wallet-h.
The wallet can be created in three steps:
First, enter the smart contract C wallet INIT, which is used to create a brand new and locked wallet. The system produces "seeds", which can be used for two purposes. One is a string of encrypted characters to open the wallet's password, and the other is if you lose your wallet file, you can use the seed file to restore the smart contract coin in your account.
Please enter the smart contract C wallet unlock, which ensures that you can create a new wallet address, send and receive smart contract coin, and provide host services.
Please note that when you serve as a space provider, the wallet must be unlocked.
Finally, enter the smart contract C wallet address to create the addresses in the wallet.
In the current version, it takes about 10-20 minutes to unlock the wallet. The fast unlocking feature is expected to be completed by the end of this summer.
Before you can provide a space service, you also need to fill in some smart contract coin in the newly created wallet address. Mining is not the recommended method unless you have more than 6 GPUs working together. Most users buy smart contracts coin on exchanges. We recommend the American Exchange Poloniex
In smart contract d, it is often necessary to synchronize all the chunks to make your account balance manifest.
3. Configuring the Host
You need to reserve space for the host to use as storage data. Hosts are able to use multiple folders, adding only one in this example. When the folder is created in the host, you need to enter the Smart Contract C Host folder add [folder] [size], so that the folder is recognized by the host.
Below, the space price needs to be set. Here, pay special attention to the difference between the price setting and the bandwidth setting. The general format for storing prices is "sc/tb/month", and the common format for storage bandwidth is "SC/TB". Space tenants will use different prices for file uploads and downloads. "Upload bandwidth" means that the hirer uploads, the supplier downloads; "Download bandwidth" means that the hirer downloads and the vendor uploads. For home users, the tenants will generally download more than upload, the corresponding vendor upload will be redundant download. As a result, the upload price may be set higher. You can set prices with the following code: Smart contract C host config Minimumstorageprice [price], smart contract C host config Minimumdownloadbandwidthprice Smart Contract C host config Minimumuploadbandwidthprice [price].
If the demand is high, the supplier may raise the price.
The host needs to provide collateral if it wants to provide services for the system to earn smart contract coin. Every 1TB space typically requires 50,000 to 100,000 smart contracts coin as collateral.
The next thing you need to do is publish the message to the entire network that you want to be a host. If you want to make advanced settings, you need to wait for the settings to complete before you become a host of messages to the network. You only need to enter Smart contract C host announce. The system will then generate a transaction that contains your IP address and public key, which can be found by the space hirer, and the hirer can upload files to you.
So far, the space you have provided has been suspended from the network for lease. If you don't have a customer for a long time, your price may be too high.
4. Configuring the Host (Advanced)
Collateral is an important feature of smart contracts that are different from other cloud storage platforms. It ensures that the hirer can retrieve the data at any time and regulates the behavior of the space supplier. There are three proper nouns, "collateral budget", "Maximum collateral" and "collateral".
When the contract is established, the supplier is required to use the smart contract coin as collateral to enter the contract. The system will then return the collateral to the supplier, regardless of whether the storage contract is successful.
When the hirer uploads the file, the host is locked in the contract of the collateral will be risk, if the host can not be maintained in accordance with the contract long-term continuous online, the collateral will be confiscated by the system.
The collateral budget is a secured mortgage in the contract, and when the hirer starts uploading the file, the collateral is converted from the budget to the dangerous collateral. The recommended collateral budget is 100,000 smart contracts coin per terabyte.
3.9% of the collateral is paid to the developer team for the fee, which is paid by the hirer.
The maximum collateral is the maximum number of secured mortgages in a contract, usually by default, and amounts to 3% to 15% of the collateral budget.
Collateral is the number of smart contract coin that the host uploads when it provides the service. Tenants prefer to use high-collateral suppliers. The collateral will take at least 1000sc/tb/months.
You can send collateral using the following command: Smart contract C host config collateral [value], smart contract C host config Collateralbudget [value], smart contract C host config Maxcol lateral [value].
The last setting is "Maximum duration", which specifies the time the host needs to save the file and is the shortest amount of time the host can provide services without losing collateral. The hirer automatically ignores hosts with a maximum duration of less than 12 weeks, which means that the minimum service period for the host is 12 weeks. Long-term host of services for the establishment of intelligent contract ecosystem is decisive, because the tenants tend to choose a good history of the host, so the long-term host should have higher credit and price. To set the maximum duration, use the following statement: Smart contract C host config maxduration [value].
In the current version, smart contract C does not cover all the features in the list and will be refined in version 1.0.
When you publish a notification to the whole network, you can use the self-discovery address: Smart contract C host announce (usually an IP address), or use a special address and domain name address: Smart contract C host announce [Hostname:port]. For example: Smart contract C host announce example.com:9982.
5. Host offline
When you announce that you are a host, the "Accept contract" column is set to true, which means that you can accept new contracts that will expire after "maximum duration". The default time is 6 months and the shortest 12 weeks.
With the client, you can stop accepting new contracts. During this time, you can still do the main machine, the agreement has been agreed to provide services, but will automatically block the new contract. You can use the following command to bring the host offline: Smart contract C host config acceptingcontracts false