Project

coinrpc

0.0
The project is in a healthy, maintained state
This Ruby Gem is a fast RPC client for Bitcoin Core style software, including Dogecoin, Litecoin, and other similar software that implements Bitcoin Core RPC interfaces.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.6, < 3.0
>= 13.0, < 14.0

Runtime

>= 3.10, < 4.0
~> 2.0, >= 2.3.1, < 3.0
>= 1.0, < 2.0
 Project Readme

CoinRPC

A simple client for Bitcoin Core style RPC. Supports batch requests.

Installation

Add this line to your application's Gemfile:

gem "coinrpc"

And then execute:

$ bundle

Or install it yourself as:

$ gem install coinrpc

Usage

    require "coinrpc"
    client = CoinRPC::Client.new("http://username:password@hostname:port")
    puts client.getblockchaininfo

Responses will contain coin values as BigDecimals:

    puts client.getrawtransaction(txid)["vout"].first["value"].to_s("F")

Contributing

  1. Fork it ( https://github.com/doersf/coinrpc/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