Skip to content

SDK for integrating Sia Skynet into Ruby applications

License

Notifications You must be signed in to change notification settings

Beyarz/ruby-skynet

Repository files navigation

Skynet gem

Gem Version

Library for integrating Skynet into Ruby applications

Getting started

Gem

gem install ruby-skynet

Bundle

bundle add ruby-skynet

Gemfile

gem 'ruby-skynet', '~> 1.3'

Examples

require 'skynet'

# Upload
upload = Skynet.upload_file('src.jpg')
puts upload
#=> Upload successful, skylink: ABC123

# Download
download = Skynet.download_file("test/src.jpg", skylink)
puts download
#=> Download successful!

For more see examples.md