Unofficial Elixir client for uploading and downloading files from <a href=”https://sia.tech/“>Sia</a> <a href=”https://siasky.net/“>Skynet</a>.
Installation
The package can be installed by adding skynet to your list of dependencies in mix.exs:
def deps do
[
{:skynet, "~> 0.1.0"}
]
endUsage
# Uploading a file
{:ok, %{skylink: skylink}} = Skynet.upload("path/to/file.jpeg")
# Downloading a file
{:ok, %{file: file, filename: filename}} = Skynet.download(skylink)The documentation can be found at https://hexdocs.pm/skynet.