No commit activity in last 3 years
No release in over 3 years
Main features to allow interaction with Bitcoin blockchain.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0
>= 0
 Project Readme

RubyBitcoinWallet

Ruby Bitcoin Wallet includes a set of ruby methods that, following Bitcoin's protocol, manage the creation of valid private and public keys and addresses. Also, making use of coinbase API, it provides direct interaction with the Bitcoin blockchain, allowing the checking of address balances and transactions, search for a specific transactions or directly create one.

Installation

Add this line to your application's Gemfile:

gem 'ruby_bitcoin_wallet'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ruby_bitcoin_wallet

Usage

Create public and private key's hash:

keys = RubyBitcoinWallet::generate_key keys #=> [, ]

Generate Address:

address = RubyBitcoinWallet::pubkey_to_address(keys[1]) address #=>

Check if address is valid:

RubyBitcoinWallet::valid_address?(address) #=> true

Get Address' balance:

RubyBitcoinWallet::address_balance(address) address_balance #=> { [:final_balance], [:total_received], [:total_sent] }

Get address' transactions:

address_txs = RubyBitcoinWallet::address_transactions(address) address_txs #=> [ <tx1_hash>, <tx2_hash>, ... ]

Contributing

  1. Fork it ( https://github.com/[my-github-username]/ruby_bitcoin_wallet/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