Skip to content
/ nem-ruby Public

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

License

Notifications You must be signed in to change notification settings

44uk/nem-ruby

Repository files navigation

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.

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages