diff options
| author | Adam Soltys <[email protected]> | 2023-01-26 11:26:05 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-01-26 11:26:09 -0800 |
| commit | f0543b6d94081f43a265bb9f754a654df9c4268a (patch) | |
| tree | c2fee79d8e410a2b6914f2dd53d7abef19497e39 /sampledata | |
| parent | 143490db49b6d67e9ddb2c59ea92ae923d08911c (diff) | |
| download | coinos-server-f0543b6d94081f43a265bb9f754a654df9c4268a.tar.gz coinos-server-f0543b6d94081f43a265bb9f754a654df9c4268a.zip | |
sample notify script
Diffstat (limited to 'sampledata')
| -rw-r--r-- | sampledata/bitcoin/bitcoin.conf | 1 | ||||
| -rwxr-xr-x | sampledata/bitcoin/transaction.sh | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sampledata/bitcoin/bitcoin.conf b/sampledata/bitcoin/bitcoin.conf index 5da37e5a..3aa44186 100644 --- a/sampledata/bitcoin/bitcoin.conf +++ b/sampledata/bitcoin/bitcoin.conf @@ -16,6 +16,7 @@ rpcwallet=coinos wallet=coinos wallet=external +walletnotify=/home/bitcoin/.bitcoin/transaction.sh %s %w zmqpubrawblock=tcp://0.0.0.0:18506 zmqpubrawtx=tcp://0.0.0.0:18507 diff --git a/sampledata/bitcoin/transaction.sh b/sampledata/bitcoin/transaction.sh new file mode 100755 index 00000000..e44789d1 --- /dev/null +++ b/sampledata/bitcoin/transaction.sh @@ -0,0 +1,2 @@ +#!/bin/sh +wget -O- --post-data='{"txid": "'$1'", "wallet": "'$2'"}' --header='Content-Type:application/json' 'http://app:3119/bitcoin' |
