How to use Skynet

Skynet is fast. A typical Skynet download starts in under 500 milliseconds and can stream at rates as high as 1 gigabit per second. 4k video streams seamlessly.

Content is served directly from Skynet. It's being loaded directly from Skynet and served to your web browser, which is then rendering the data as a blog post. Not just the html, but the images as well. Each image in the post is a separate file that has been uploaded to Skynet, and then is being embedded using <img> tags.

Install

First, you need to install and set up a Sia node. Refer to this article for info on getting up and running.

Uploading files

The easiest way to upload a file to Skynet is by using a webportal. Webportals such as the ones in our announcement post generally have a field that allows you to drag and drop files. Once one webportal has uploaded a file, the file becomes available to the whole network, and can be retrieved from any portal, even your own.

A more decentralized way to put files onto Skynet is to use your own node. Starting with Sia v1.4.3, any Sia node can upload any file to Skynet. The Sia network will then pin the file, ensuring that the file has availability so long as at least one person is paying to keep the file on the network. That person does not need to be online themselves, the Sia network will ensure high uptime for the file.

Pinning files

Anyone who has access to a file can choose to re-pin that file. The file will remain available so long as at least one person is successfully pinning the file. And again, that person does not need to be online themselves, the Sia network takes care of uptime. The person only needs to ensure that the file remains on their renter and in good health.

Commands

Upload

siac skynet upload [source] [destination]

source - the location of the file on your computer that you wish to upload

destination - the siapath that you want to keep the file at within your Sia node

At this point, the file will be maintained and repaired just like any other Siafile. So long as the file is in good health, the file will be available for anyone to download from Skynet.

Pinning

siac skynet pin [skylink] [destination]

siac skynet unpin [skylink] [destination]

skylink - the link of the fle that is being re-pinned or unpinned

destination - the siapath on the Sia node where the file is kept.

Just like with uploading, the file will be maintained and repaired as though it were a normal siafile.

Blacklist

./siac skynet blacklist [skylink] [flags]

For example, if this is the skylink you want to blacklist:

https://siasky.net/AABO5e3-vPH5lpjUf4YQAQOE5qRqdeutuahomWFodkTG8A

The skylink section is is the 46 characters in the link:

https://siasky.net/ABCdefGHIjklMNOpqrSTUvxwYZ12345678901234567890, so your command would look like:

./siac skynet blacklist ABCdefGHIjklMNOpqrSTUvxwYZ12345678901234567890 [flags]

Find out more

Use ./siac skynet help to see the full list of commands.


How did we do?


Powered by HelpDocs (opens in a new tab)

Powered by HelpDocs (opens in a new tab)