Project

coinable

0.0
No commit activity in last 3 years
No release in over 3 years
Communicate with Bitcoin, Litecoin, Emercoin and other Altcoin JSON RPC the Ruby way
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.11
~> 1.6
~> 10.0
~> 3.0

Runtime

~> 0.13.7
 Project Readme

Coinable

Build Status

Communicate with Bitcoin, Litecoin, Emercoin and other Altcoin JSON RPC the Ruby way.

Coinable implements original Bitcoin API methods (not all of them yet). So if your altcoin based on them you are free to use Coinable.

Installation

Add this line to your application's Gemfile:

gem 'coinable'

And then execute:

$ bundle

Or install it yourself as:

$ gem install coinable

Usage

class Bitcoin
  extend Coinable
end

Bitcoin.configure do |config|
  config.host = '123.45.678.91' # default: 'localhost'
  config.port = 1337            # default: 8543
  config.user = 'admin'         # default: 'rpcuser'
  config.password = 'swordfish' # default: 'rpcpassword'
end

Bitcoin.new_address #=> '14gnToPKhRKhRKXZHV4mJyu8N5EFAoFU6G'

class Litecoin
  extend Coinable
end

Litecoin.configure do |config|
  # set host, port, user and password
end

Litecoin.new_address #=> 'LcaNTWEF9FMUnwKkvtzfRtxwsqs979LLom'

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/dmxhZGp1c2hh/coinable.

License

The gem is available as open source under the terms of the MIT License.