Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

bitstopco/bitcoin_rpc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BitcoinRpc

Simple Crystal library for Bitcoin's RPC API.

All calls get proxied by a method_missing macro, so they have exactly the same names and arguments as specified in the official documentation.

Installation

Add this to your application's shard.yml:

dependencies:
  bitcoin_rpc:
    github: citizen428/bitcoin_rpc

Usage

Usage is very simple:

require "bitcoin_rpc"

# Testnet example
rpc = BitcoinRpc.new("http://localhost:18332", "username", "password")
rpc.getblockhash(0)
#=> "000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943"
rpc.getblockcount
#=> 486259
rpc.listaccounts
#=> {"" => 0.0}

Contributing

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

About

Bitcoin RPC client for Crystal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Crystal 100.0%