1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2024-11-27 02:18:25 +00:00

Merge pull request #839 from rating89us/patch-50

appdx: fix commentaries in code
This commit is contained in:
Will Binns 2021-03-05 21:55:05 +01:00 committed by GitHub
commit 36c2824f10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,11 +55,11 @@ Creating and signing a transaction from an UTXO:
---- ----
> utxo = { > utxo = {
txId: transaction id containing an unspent output, txId: txId, // transaction id containing an unspent output
outputIndex: output index e.g. 0, outputIndex: outputIndex, // output index (e.g. 0)
address: addressOfUtxo, address: addressOfUtxo,
script: bitcore.Script.buildPublicKeyHashOut(addressOfUtxo).toString(), script: bitcore.Script.buildPublicKeyHashOut(addressOfUtxo).toString(),
satoshis: amount sent to the address satoshis: satoshis // amount sent to the address
} }
> fee = 3000 //set appropriately for conditions on the network > fee = 3000 //set appropriately for conditions on the network
> tx = new bitcore.Transaction() > tx = new bitcore.Transaction()