@@ -195,7 +195,7 @@ let txInfo = {
195
195
version: 3 ,
196
196
inputs: [
197
197
{
198
- txId : " 7f3055...e8352b" ,
198
+ txid : " 7f3055...e8352b" ,
199
199
outputIndex: 0 ,
200
200
publicKey: " 5bcd0d776a7252310b9f1a7eee1a749d42126944" ,
201
201
sigHashType: 0x01 ,
@@ -242,7 +242,7 @@ let txInfo = {
242
242
version: 3 ,
243
243
inputs: [
244
244
{
245
- txId : " 7f305558cbeba3a9271d2559e8277f473f29d6b64a7a7a27e02a8564bde8352b" ,
245
+ txid : " 7f305558cbeba3a9271d2559e8277f473f29d6b64a7a7a27e02a8564bde8352b" ,
246
246
outputIndex: 0 ,
247
247
// "Xj4Ey1oerk5KUKM71UQCTUBbmfyQuoUHDr"
248
248
// "5bcd0d776a7252310b9f1a7eee1a749d42126944"
@@ -291,7 +291,7 @@ insert a change output if necessary.
291
291
let coins = [
292
292
{
293
293
satoshis: 1_000_00000 ,
294
- txId : " 7f305558cbeba3a9271d2559e8277f473f29d6b64a7a7a27e02a8564bde8352b" ,
294
+ txid : " 7f305558cbeba3a9271d2559e8277f473f29d6b64a7a7a27e02a8564bde8352b" ,
295
295
outputIndex: 0 ,
296
296
// you may have one or more address identifiers
297
297
publicKey:
@@ -336,7 +336,7 @@ console.info(txInfo.transaction);
336
336
{
337
337
"inputs" : [
338
338
{
339
- "txId " : " 7f305558cbeba3a9271d2559e8277f473f29d6b64a7a7a27e02a8564bde8352b" ,
339
+ "txid " : " 7f305558cbeba3a9271d2559e8277f473f29d6b64a7a7a27e02a8564bde8352b" ,
340
340
"outputIndex" : 0 ,
341
341
"publicKey" : " 03755be68d084e7ead4d83e23fb37c3076b16ead432de1b0bdf249290400f263cb" ,
342
342
"sigHashType" : 1 ,
@@ -623,7 +623,7 @@ Tx.create({ getPrivateKey, getPublicKey, sign, toPublicKey });
623
623
* For example, you could store private keys in a map by their
624
624
* corresponding address.
625
625
*
626
- * @param {TxInput} txInput - publicKey, txId , outputIndex, etc
626
+ * @param {TxInput} txInput - publicKey, txid , outputIndex, etc
627
627
* @param {Number} i - the index of the inputs array
628
628
* @returns {Uint8Array} - the private key bytes
629
629
*/
0 commit comments