Skip to content

Commit a4342fd

Browse files
committed
doc: correctly spell 'txid' (lowercase)
1 parent b88093c commit a4342fd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ let txInfo = {
195195
version: 3,
196196
inputs: [
197197
{
198-
txId: "7f3055...e8352b",
198+
txid: "7f3055...e8352b",
199199
outputIndex: 0,
200200
publicKey: "5bcd0d776a7252310b9f1a7eee1a749d42126944",
201201
sigHashType: 0x01,
@@ -242,7 +242,7 @@ let txInfo = {
242242
version: 3,
243243
inputs: [
244244
{
245-
txId: "7f305558cbeba3a9271d2559e8277f473f29d6b64a7a7a27e02a8564bde8352b",
245+
txid: "7f305558cbeba3a9271d2559e8277f473f29d6b64a7a7a27e02a8564bde8352b",
246246
outputIndex: 0,
247247
// "Xj4Ey1oerk5KUKM71UQCTUBbmfyQuoUHDr"
248248
// "5bcd0d776a7252310b9f1a7eee1a749d42126944"
@@ -291,7 +291,7 @@ insert a change output if necessary.
291291
let coins = [
292292
{
293293
satoshis: 1_000_00000,
294-
txId: "7f305558cbeba3a9271d2559e8277f473f29d6b64a7a7a27e02a8564bde8352b",
294+
txid: "7f305558cbeba3a9271d2559e8277f473f29d6b64a7a7a27e02a8564bde8352b",
295295
outputIndex: 0,
296296
// you may have one or more address identifiers
297297
publicKey:
@@ -336,7 +336,7 @@ console.info(txInfo.transaction);
336336
{
337337
"inputs": [
338338
{
339-
"txId": "7f305558cbeba3a9271d2559e8277f473f29d6b64a7a7a27e02a8564bde8352b",
339+
"txid": "7f305558cbeba3a9271d2559e8277f473f29d6b64a7a7a27e02a8564bde8352b",
340340
"outputIndex": 0,
341341
"publicKey": "03755be68d084e7ead4d83e23fb37c3076b16ead432de1b0bdf249290400f263cb",
342342
"sigHashType": 1,
@@ -623,7 +623,7 @@ Tx.create({ getPrivateKey, getPublicKey, sign, toPublicKey });
623623
* For example, you could store private keys in a map by their
624624
* corresponding address.
625625
*
626-
* @param {TxInput} txInput - publicKey, txId, outputIndex, etc
626+
* @param {TxInput} txInput - publicKey, txid, outputIndex, etc
627627
* @param {Number} i - the index of the inputs array
628628
* @returns {Uint8Array} - the private key bytes
629629
*/

0 commit comments

Comments
 (0)