@@ -1271,7 +1271,7 @@ var DashTx = ("object" === typeof module && exports) || {};
1271
1271
tx . push ( rawScript ) ;
1272
1272
}
1273
1273
1274
- let sequence = "ffffffff" ;
1274
+ let sequence = input . sequence ?? "ffffffff" ;
1275
1275
tx . push ( sequence ) ;
1276
1276
1277
1277
return tx ;
@@ -2086,6 +2086,7 @@ if ("object" === typeof module) {
2086
2086
* @prop {String } [script] - the previous lock script (default: derived from public key as p2pkh)
2087
2087
* @prop {String } publicKey - hex-encoded public key (typically starts with a 0x02 or 0x03 prefix)
2088
2088
* @prop {String } [pubKeyHash] - the 20-byte pubKeyHash (address without magic byte or checksum)
2089
+ * @prop {String } [sequence] - the 4-byte sequence (typically ffffffff)
2089
2090
* @prop {Uint32 } sigHashType - typically 0x81 (SIGHASH_ALL|SIGHASH_ANYONECANPAY)
2090
2091
*/
2091
2092
@@ -2100,6 +2101,7 @@ if ("object" === typeof module) {
2100
2101
* @prop {String } [script] - the previous lock script (default: derived from public key as p2pkh)
2101
2102
* @prop {String } [publicKey] - hex-encoded public key (typically starts with a 0x02 or 0x03 prefix)
2102
2103
* @prop {String } [pubKeyHash] - the 20-byte pubKeyHash (address without magic byte or checksum)
2104
+ * @prop {String } [sequence] - the 4-byte sequence (typically ffffffff)
2103
2105
* @prop {Uint32 } sigHashType - typically 0x81 (SIGHASH_ALL|SIGHASH_ANYONECANPAY)
2104
2106
*/
2105
2107
@@ -2110,6 +2112,7 @@ if ("object" === typeof module) {
2110
2112
* @prop {String } [txId] - deprecated
2111
2113
* @prop {String } txid - hex (not pre-reversed)
2112
2114
* @prop {Uint32 } outputIndex - index in previous tx's output (vout index)
2115
+ * @prop {String } [sequence] - the 4-byte sequence (typically ffffffff)
2113
2116
*/
2114
2117
2115
2118
/**
@@ -2134,7 +2137,7 @@ if ("object" === typeof module) {
2134
2137
*/
2135
2138
2136
2139
/**
2137
- * @typedef {Pick<TxInput, "txId"|"txid"|"outputIndex"|"signature"|"publicKey"|"sigHashType"> } TxInputSigned
2140
+ * @typedef {Pick<TxInput, "txId"|"txid"|"outputIndex"|"signature"|"publicKey"|"sequence"|" sigHashType"> } TxInputSigned
2138
2141
*/
2139
2142
2140
2143
/**
@@ -2355,7 +2358,7 @@ if ("object" === typeof module) {
2355
2358
* @param {Uint32 } [txInfo.locktime]
2356
2359
* @param {Hex? } [txInfo.extraPayload] - extra payload
2357
2360
* @param {Boolean } [txInfo._debug] - bespoke debug output
2358
- * @param {Uint32 } [sigHashType]
2361
+ * @param {Uint32? } [sigHashType]
2359
2362
*/
2360
2363
2361
2364
/**
@@ -2368,7 +2371,7 @@ if ("object" === typeof module) {
2368
2371
* @param {Array<TxOutput> } txInfo.outputs
2369
2372
* @param {Hex? } [txInfo.extraPayload] - extra payload
2370
2373
* @param {Boolean } [txInfo._debug] - bespoke debug output
2371
- * @param {Uint32 } sigHashType
2374
+ * @param {Uint32? } sigHashType
2372
2375
*/
2373
2376
2374
2377
/**
0 commit comments