https://github.com/igrishaev/clj-bitcoin
https://github.com/igrishaev/clj-bitcoin
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/igrishaev/clj-bitcoin
- Owner: igrishaev
- License: epl-1.0
- Created: 2017-11-29T14:17:31.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-08T07:43:34.000Z (about 8 years ago)
- Last Synced: 2025-01-05T20:42:32.583Z (about 1 year ago)
- Language: Clojure
- Size: 18.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Bitcoin
[api-wiki]:https://bitcoin.org/en/developer-reference#rpcs
A Clojure wrapper upon the original C++ Bitcoin client. Implements [JSON-RPC
APIs][api-wiki] for the server.
## Installation
Add `[bitcoin "0.1.0-SNAPSHOT"]` to your dependencies.
## Usage
```clojure
(use 'bitcoin.api)
(def server (json-rpc "127.0.0.1" 8332 "ivan" "123"))
(getbalance server "ivan")
0.0
(getaccountaddress server "ivan")
1DiYHeMaZaX2aJpJ92J19gk3uar1KVDzGh
(getaddressesbyaccount server "ivan")
["1DiYHeMaZaX2aJpJ92J19gk3uar1KVDzGh"]
```
## License
[homepage]:http://grishaev.me/
Copyright © 2017 [Ivan Grishaev][homepage].
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.
## Misc
This library was developed during live [coding session][stream-1] on YouTube.
[stream-1]:https://www.youtube.com/watch?v=JtKmeTZNT7w