Skip to content

payshares-legacy/ruby-payshares-lib

Repository files navigation

Ruby Payshares

Build Status

STATUS: this library is very early and incomplete. The examples provided do not work, yet.

This library helps you to integrate your application into the Payshares Network.

Installation

Add this line to your application's Gemfile:

gem 'payshares'

And then execute:

$ bundle

Or install it yourself as:

$ gem install payshares

Also requires libsodium. Installable via brew install libsodium on OS X.

Usage

See examples.

A simple payment from the root account to some random accounts

require 'payshares'

account   = Payshares::Account.master
client    = Payshares::Client.default_testnet()
recipient = Payshares::Account.random

client.send_payment({
  from:   account,
  to:     recipient,
  amount: Payshares::Amount.new(100_000000)
}) 

Contributing

  1. Sign the Contributor License Agreement
  2. Fork it ( https://github.com/payshares/ruby-payshares-lib/fork )
  3. Create your feature branch (git checkout -b my-new-feature)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •  

Languages