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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ada8f42 · Jun 5, 2021
Jun 5, 2021
Nov 1, 2018
Sep 6, 2018
Feb 11, 2019
Aug 22, 2018
Jan 4, 2018
Nov 11, 2017
Nov 11, 2017
Nov 11, 2017
Nov 11, 2017
Dec 27, 2017
Jun 5, 2021
Nov 11, 2017
Jan 4, 2018
Jun 5, 2021

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.