nis-cli
Ruby CUI client for the NEM Infrastructure Server(NIS) API.
It is dependent on nis-ruby.gem.
Installation
$ gem install nis-cli
Usage
$ 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>]
Connection
You can choose nodes from NEM Node Rewards.
Environment Variable
$ export NIS_URL=http://23.228.67.85:7890
$ nis heartbeat # => {"code":1,"type":2,"message":"ok"}
Feedback and Contact
For further development of nem with ruby, feel free to send me your feedback!
Contributing
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.
License
The gem is available as open source under the terms of the MIT License.