DogeCoin
The purpose of this gem is to explore the DogeCoin blockchain. For the moment it wraps the Dogechain API, but this could change in the future.
Installation
Add this line to your application's Gemfile:
gem 'doge_coin'
And then execute:
$ bundle
Or install it yourself as:
$ gem install doge_coin
Usage
Instruction
There is a call mapped for nearly all the dogechain API.
The current calls are:
get_block_count
get_difficulty
get_total_mined
transactions
address_balance (address)
total_received (address)
total_sent (address)
address_to_hash (address)
hash_to_address (address)
valid_address? (address)
decode_address (address)
In a close-future, I would like to add methods to check if an address received new transactions, check how much validations it got etc...
Feel free to contribute !
Configuration
You can configure the gem to use VCR (e.g: for test purpose). Simply add the following to your spec_helper.rb
DogeCoin.configure do |c|
c.vcr_mode = true
end
Testing
Checkout the gem, then simply run
rspec
Contributing
- Fork it ( http://github.com/
/doge_coin/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 new Pull Request