bitcoin_rpc
Version, currently 0.4.13 versions
- 1.0.1latestOct 9, 2021
- 0.4.1not indexedOct 9, 2021
- 0.4.0not indexedOct 9, 2021
github.com/greenbigfrog/bitcoin_rpc
Bitcoin RPC client for Crystal
Nothing has been indexed for 0.4.1 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
bitcoin_rpc:
github: greenbigfrog/bitcoin_rpc
version: ~> 0.4.1Then run:
shards installshard.yml
No shard.yml has been indexed for 0.4.1. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
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)
# or
rpc.get_block_hash(0)
#=> "000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943"
rpc.getblockcount
#or
rpc.get_block_count
#=> 486259
rpc.listaccounts
# or
rpc.list_accounts
#=> {"" => 0.0}
Releases
v1.0.1
- Fix crystal requirement
v1.0.0
- change crystal version requirement to *
v0.5.0
- Include JSON body when raising on unseccessfull RPC request
v0.4.1
- Fix error raising logic
v0.4.0
- Raise error if none Success HTTP status code
v0.3.1
- Now raising with actual error message
v0.2.1
- Close HTTP Client, causing issues when called with higher rate
v0.2.0
- BitcoinRpc is finally thread safe (was unaware that client.post wasn't concurrrent)
Contributing
- Fork it ( https://github.com/citizen428/bitcoin_rpc/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 a new Pull Request
Contributors
- citizen428 Michael Kohl - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.4.1- Tagged
- Oct 9, 2021
- Commit
33d2f98ab188- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/greenbigfrog/bitcoin_rpc
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 3