Project

nem-ruby

0.02
No commit activity in last 3 years
No release in over 3 years
Ruby gem for communicating with the nem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.17.0
~> 10.0
~> 3.0
~> 0.61.1
~> 0.8
~> 2.3
~> 0.9

Runtime

 Project Readme

nem-ruby

Gem Version Ruby 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', require: 'nem'

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.