Ruby gem for communicating with nem network through the NIS API.
Clone or download
Latest commit d60c965 Sep 29, 2018
Permalink
Failed to load latest commit information.
docs fix deserializer Mar 10, 2018
examples add example remove cosinger from cosignatories Sep 6, 2018
lib Update serializer.rb Sep 28, 2018
spec add spec Aug 22, 2018
.gitignore add docs Jan 4, 2018
.rspec create gem Nov 11, 2017
.rubocop.yml create gem Nov 11, 2017
.travis.yml add test ruby 2.5.0 Dec 27, 2017
CODE_OF_CONDUCT.md create gem Nov 11, 2017
Gemfile create gem Nov 11, 2017
LICENSE Create LICENSE Dec 27, 2017
README.md update README.md Jan 9, 2018
Rakefile create gem Nov 11, 2017
mkdocs.yml add docs Jan 4, 2018
nem-ruby.gemspec update rubocop for upper v0.50 Jan 4, 2018

README.md

nem-ruby

Gem Version Build Status Code Climate Join the chat at https://gitter.im/44uk/nem-ruby

nem

Ruby gem for communicating with nem network through the NIS API.

The gem is under development. Incompatible changes can be made.

For further development of nem with ruby, feel free to send me your feedback!

Installation

$ gem install nem-ruby

Or add this line to your application's Gemfile:

gem 'nem-ruby'

Usage

require 'pp'
require 'nem'

node = Nem::Node.new(host: '104.128.226.60')
account_endpoint = Nem::Endpoint::Account.new(node)

pp account_endpoint.find('TBULEAUG2CZQISUR442HWA6UAKGWIXHDABJVIPS4')
# => #<Nem::Model::Account:0x007fe95b35f560
#  @address="TBULEAUG2CZQISUR442HWA6UAKGWIXHDABJVIPS4",
#  @balance=68000000,
#  @cosignatories=[],
#  @cosignatory_of=[],
#  @harvested_blocks=1,
#  @importance=0.0,
#  @label=nil,
#  @public_key=
#   "e59ef184a612d4c3c4d89b5950eb57262c69862b2f96e59c5043bf41765c482f",
#  @remote_status="INACTIVE",
#  @status="LOCKED",
#  @vested_balance=62145647>

Examples

More specific example codes are in examples/ directory.

Feedback and Contact

For further development of nem with ruby, feel free to send me your feedback!

For More Information

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/44uk/nem-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.