Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alfg/bithook
:moneybag: A Bitcoin Webhook CLI
https://github.com/alfg/bithook
bitcoin bitcoin-webhook-cli go
Last synced: about 1 month ago
JSON representation
:moneybag: A Bitcoin Webhook CLI
- Host: GitHub
- URL: https://github.com/alfg/bithook
- Owner: alfg
- License: mit
- Created: 2014-12-29T05:38:22.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-03T17:54:41.000Z (over 7 years ago)
- Last Synced: 2024-09-29T04:01:42.990Z (about 2 months ago)
- Topics: bitcoin, bitcoin-webhook-cli, go
- Language: Go
- Homepage:
- Size: 3.59 MB
- Stars: 11
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
bithook
=======Bithook is a Bitcoin Webhook CLI Utility. You can use this program to listen for new blocks and
transactions for addresses. When a transaction is received, Bithook will fire off a web POST
request any URL you specify along with the transaction JSON data.Bithook uses the [Blockchain.info](http://blockchain.info) websocket API to listen for transactions.
## Features
* Subscribe to new blocks
* Subscribe to transactions for a specified address
* Subscribe to unconfirmed addresses
* Sends JSON data as a POST request to any URL## Install From Source
```
go get github.com/alfg/bithook
./bin/bithook help
```## Install from Homebrew
```
brew cask alfg/tap
brew install alfg/tap/bithook
bithook help
```## Usage
`bithook http://webhook/path`
```
-- Subscribe to address.
Commands:
bithook blocks -- Subscribe to new blocks.
bithook unconfirmed -- Subscribe to new unconfirmed transactions.
bithook address
bithook test -- Receives latest transaction. Use for testing.
bithook help -- This help menu.
bithook version -- This version.Optional:
-- This is optional. The results will just echo to output if not set.
```#### Example
The following example will listen for transactions of 1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp and POST the json results to http://requestb.in/nt5bcnnt. You can view the results at http://requestb.in/nt5bcnnt?inspect.
`bithook address 1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp http://requestb.in/nt5bcnnt`
## Develop
```
git clone [email protected]:alfg/bithook.git
export GOPATH=$HOME/path/to/project
cd /to/project
go run main.go
```## License
MIT