mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-26 23:59: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:1042](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L1042)
|
|
|
|
## Properties
|
|
|
|
### innerRedeemscriptAsm
|
|
|
|
> **innerRedeemscriptAsm**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1051](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L1051)
|
|
|
|
Inner redeemscript in assembly (for P2SH-wrapped SegWit: scriptsig + witness both present)
|
|
|
|
***
|
|
|
|
### innerWitnessscriptAsm
|
|
|
|
> **innerWitnessscriptAsm**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1052](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L1052)
|
|
|
|
Inner witnessscript in assembly (for P2WSH: last witness item decoded as script)
|
|
|
|
***
|
|
|
|
### isCoinbase
|
|
|
|
> **isCoinbase**: `boolean`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1049](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L1049)
|
|
|
|
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:1045](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L1045)
|
|
|
|
Information about the previous output being spent
|
|
|
|
***
|
|
|
|
### scriptsig
|
|
|
|
> **scriptsig**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1046](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L1046)
|
|
|
|
Signature script (hex, for non-SegWit inputs)
|
|
|
|
***
|
|
|
|
### scriptsigAsm
|
|
|
|
> **scriptsigAsm**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1047](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L1047)
|
|
|
|
Signature script in assembly format
|
|
|
|
***
|
|
|
|
### sequence
|
|
|
|
> **sequence**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1050](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L1050)
|
|
|
|
Input sequence number
|
|
|
|
***
|
|
|
|
### txid
|
|
|
|
> **txid**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1043](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L1043)
|
|
|
|
Transaction ID of the output being spent
|
|
|
|
***
|
|
|
|
### vout
|
|
|
|
> **vout**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1044](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L1044)
|
|
|
|
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:1048](https://github.com/bitcoinresearchkit/brk/blob/acd3d6f42524ece8c85e7b09cc9fdb13b5687b9f/modules/brk-client/index.js#L1048)
|
|
|
|
Witness data (hex-encoded stack items, present for SegWit inputs)
|