Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/watzon/garlicoin.cr
WIP Garlicoin API connection library in Crystal
https://github.com/watzon/garlicoin.cr
api-wrapper cryptocurrency crystal garlicoin
Last synced: about 23 hours ago
JSON representation
WIP Garlicoin API connection library in Crystal
- Host: GitHub
- URL: https://github.com/watzon/garlicoin.cr
- Owner: watzon
- License: mit
- Created: 2018-01-25T17:40:01.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-27T20:31:16.000Z (almost 7 years ago)
- Last Synced: 2024-05-08T23:08:25.638Z (6 months ago)
- Topics: api-wrapper, cryptocurrency, crystal, garlicoin
- Language: Crystal
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`:
```yaml
dependencies:
garlicoin:
github: watzon/garlicoin
```## Usage
```crystal
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
1. Fork it ( https://github.com/watzon/garlicoin.cr/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request## Contributors
- [watzon](https://github.com/watzon) Chris Watson - creator, maintainer