aboutsummaryrefslogtreecommitdiffstats
path: root/bcore.js
diff options
context:
space:
mode:
Diffstat (limited to 'bcore.js')
-rw-r--r--bcore.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/bcore.js b/bcore.js
deleted file mode 100644
index f33451b2..00000000
--- a/bcore.js
+++ /dev/null
@@ -1,22 +0,0 @@
-import bitcoin from 'bitcoinjs-lib'
-import Bitcoin from 'bitcoin-core'
-import zmq from 'zeromq'
-
-const sock = zmq.socket('sub')
-
-;(async () => {
- let b = new Bitcoin({
- username: 'adam',
- password: 'MPJzfq97',
- port: 18332,
- })
- let res = await b.getBlockCount()
- console.log(res)
-
- sock.connect('tcp://127.0.0.1:18502')
- sock.subscribe('rawtx')
- sock.on('message', (t, m) => {
- let tx = bitcoin.Transaction.fromBuffer(m)
- console.log(tx)
- })
-})()