Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 814d809

Browse files
committed
update readme
1 parent 7792c79 commit 814d809

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

Readme.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
1+
### create a transaction with bitcore lib explained
2+
3+
<!--
4+
15
# EPISODE 03
26
37
(maybe delete 01 and 02 and just publish this)
48
9+
-->
10+
511
code for the episode:
612

13+
Creating a private key and sending a bitcoin transaction in 30 lines of code
14+
15+
bitcore-lib.js (purely didatical version)
16+
17+
bitcoinjs-lib.js (TODO: a more practical version)
18+
719
```js
820

921
const { readFileSync } = require('fs')
@@ -20,8 +32,9 @@ console.log("address:", address)
2032

2133
// --- 6 lines
2234

23-
// const getUTXOs = require('blockchain-api/get-utxos')
24-
const getUTXOs = require('./blockchain-api/get-utxos')
35+
const getUTXOs = require('./blockchain-api/get-utxos')
36+
const pushTx = require('./blockchain-api/push-tx')
37+
// const { pushTx, getUTXOs } = require('./blockchain-api') // TODO: NPM MODULE
2538

2639
;(async () => {
2740
try {
@@ -54,8 +67,8 @@ const getUTXOs = require('./blockchain-api/get-utxos')
5467

5568
```
5669

57-
That's it - creating a private key and sending a bitcoin transaction in 30 lines of code - youtube video explainer #coding #bitcoin #tx #utxo #bitcoin-tx #bitcoin-utxo
70+
Creating a private key and sending a bitcoin transaction in 30 lines of code - youtube video explainer #coding #bitcoin #tx #utxo #bitcoin-tx #bitcoin-utxo
5871

5972
---
6073

61-
@makevoid
74+
@makevoid

0 commit comments

Comments
 (0)