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!
- NEM - Distributed Ledger Technology (Blockchain)
- NEM NIS API Documentation
- NEM Forum
- NEM Testnet Faucet - You can get Testnet XEM for development / testing.
$ gem install nem-ruby
Or add this line to your application's Gemfile:
gem 'nem-ruby', require: 'nem'
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>
More specific example codes are in examples/ directory.
For further development of nem with ruby, feel free to send me your feedback!
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.
The gem is available as open source under the terms of the MIT License.