Ruby CUI client for the NEM Infrastructure Server(NIS) API.
It is dependent on nis-ruby.gem.
$ gem install nis-cli
$ nis status
# => {"code":6,"type":4,"message":"status"}
$ nis heartbeat
# => {"code":1,"type":2,"message":"ok"}
$ nis request get account/get --params=address:TALICELCD3XPH4FFI5STGGNSNSWPOTG5E4DS2TOS
# => [AccountMetaDataPair structure]
$ nis request get account/harvests --params=address:TALICELCD3XPH4FFI5STGGNSNSWPOTG5E4DS2TOS hash:81d52a7df4abba8bb1613bcc42b6b93cf3114524939035d88ae8e864cd2c34c8
# => [Array <HervestInfo structure>]
You can choose nodes from NEM Node Rewards.
$ export NIS_URL=http://23.228.67.85:7890
$ nis heartbeat # => {"code":1,"type":2,"message":"ok"}
For further development of nem with ruby, feel free to send me your feedback!
Bug reports and pull requests are welcome on GitHub at 44uk/nis-cli. 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.