garlicoin.cr
garlicoin.cr
WIP Garlicoin API connection library in Crystal. Connects to the garlicoin daemon via JSON-RPC and uses it's built in commands to examine the blockchain, send money, interact with your wallet, and more.
Installation
Add this to your application's shard.yml
:
dependencies:
garlicoin:
github: watzon/garlicoin
Usage
require "garlicoin"
# Connect to garlicoind using the information supplied in your garlicoin.conf file
client = Garlicoin::Client.new("localhost", 42070, "username", "password")
accounts = client.list_accounts
pp accounts # => { "": 2.53575342 }
# Or you can lead your config from your garlicoin.conf directly
conf = Garlicoin::Config.load
client = Garlicoin::Client.new(conf)
accounts = client.list_accounts
pp accounts # => { "": 2.53575342 }
Contributing
- Fork it ( https://github.com/watzon/garlicoin.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- watzon Chris Watson - creator, maintainer
Repository
garlicoin.cr
Owner
Statistic
- 0
- 0
- 0
- 1
- 1
- almost 7 years ago
- January 25, 2018
License
MIT License
Links
Synced at
Sun, 17 Nov 2024 02:13:11 GMT
Languages