mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 14:49:58 -07:00
110 lines
3.2 KiB
Markdown
110 lines
3.2 KiB
Markdown
[**brk-client**](../README.md)
|
|
|
|
***
|
|
|
|
[brk-client](../globals.md) / TxIn
|
|
|
|
# Interface: TxIn
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1025](https://github.com/bitcoinresearchkit/brk/blob/8bc993ecebee68170d873d232b25f3b1f2d71378/modules/brk-client/index.js#L1025)
|
|
|
|
## Properties
|
|
|
|
### innerRedeemscriptAsm
|
|
|
|
> **innerRedeemscriptAsm**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1034](https://github.com/bitcoinresearchkit/brk/blob/8bc993ecebee68170d873d232b25f3b1f2d71378/modules/brk-client/index.js#L1034)
|
|
|
|
Inner redeemscript in assembly (for P2SH-wrapped SegWit: scriptsig + witness both present)
|
|
|
|
***
|
|
|
|
### innerWitnessscriptAsm
|
|
|
|
> **innerWitnessscriptAsm**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1035](https://github.com/bitcoinresearchkit/brk/blob/8bc993ecebee68170d873d232b25f3b1f2d71378/modules/brk-client/index.js#L1035)
|
|
|
|
Inner witnessscript in assembly (for P2WSH: last witness item decoded as script)
|
|
|
|
***
|
|
|
|
### isCoinbase
|
|
|
|
> **isCoinbase**: `boolean`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1032](https://github.com/bitcoinresearchkit/brk/blob/8bc993ecebee68170d873d232b25f3b1f2d71378/modules/brk-client/index.js#L1032)
|
|
|
|
Whether this input is a coinbase (block reward) input
|
|
|
|
***
|
|
|
|
### prevout?
|
|
|
|
> `optional` **prevout?**: [`TxOut`](TxOut.md) \| `null`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1028](https://github.com/bitcoinresearchkit/brk/blob/8bc993ecebee68170d873d232b25f3b1f2d71378/modules/brk-client/index.js#L1028)
|
|
|
|
Information about the previous output being spent
|
|
|
|
***
|
|
|
|
### scriptsig
|
|
|
|
> **scriptsig**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1029](https://github.com/bitcoinresearchkit/brk/blob/8bc993ecebee68170d873d232b25f3b1f2d71378/modules/brk-client/index.js#L1029)
|
|
|
|
Signature script (hex, for non-SegWit inputs)
|
|
|
|
***
|
|
|
|
### scriptsigAsm
|
|
|
|
> **scriptsigAsm**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1030](https://github.com/bitcoinresearchkit/brk/blob/8bc993ecebee68170d873d232b25f3b1f2d71378/modules/brk-client/index.js#L1030)
|
|
|
|
Signature script in assembly format
|
|
|
|
***
|
|
|
|
### sequence
|
|
|
|
> **sequence**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1033](https://github.com/bitcoinresearchkit/brk/blob/8bc993ecebee68170d873d232b25f3b1f2d71378/modules/brk-client/index.js#L1033)
|
|
|
|
Input sequence number
|
|
|
|
***
|
|
|
|
### txid
|
|
|
|
> **txid**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1026](https://github.com/bitcoinresearchkit/brk/blob/8bc993ecebee68170d873d232b25f3b1f2d71378/modules/brk-client/index.js#L1026)
|
|
|
|
Transaction ID of the output being spent
|
|
|
|
***
|
|
|
|
### vout
|
|
|
|
> **vout**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1027](https://github.com/bitcoinresearchkit/brk/blob/8bc993ecebee68170d873d232b25f3b1f2d71378/modules/brk-client/index.js#L1027)
|
|
|
|
Output index being spent (u16: coinbase is 65535, mempool.space uses u32: 4294967295)
|
|
|
|
***
|
|
|
|
### witness
|
|
|
|
> **witness**: `string`[]
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1031](https://github.com/bitcoinresearchkit/brk/blob/8bc993ecebee68170d873d232b25f3b1f2d71378/modules/brk-client/index.js#L1031)
|
|
|
|
Witness data (hex-encoded stack items, present for SegWit inputs)
|