https://github.com/alfg/bithook
:moneybag: A Bitcoin Webhook CLI
https://github.com/alfg/bithook
bitcoin bitcoin-webhook-cli go
Last synced: 9 months 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 (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-04-03T17:54:41.000Z (over 9 years ago)
- Last Synced: 2025-02-01T18:11:44.069Z (over 1 year ago)
- Topics: bitcoin, bitcoin-webhook-cli, go
- Language: Go
- Homepage:
- Size: 3.59 MB
- Stars: 11
- Watchers: 3
- Forks: 3
- 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`
```
Commands:
bithook blocks -- Subscribe to new blocks.
bithook unconfirmed -- Subscribe to new unconfirmed transactions.
bithook address
-- Subscribe to 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 git@github.com:alfg/bithook.git
export GOPATH=$HOME/path/to/project
cd /to/project
go run main.go
```
## License
MIT