mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-20 06:44:47 -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:1168](https://github.com/bitcoinresearchkit/brk/blob/25b226856307047c5c10a075ec57219ca9987c38/modules/brk-client/index.js#L1168)
|
|
|
|
## Properties
|
|
|
|
### innerRedeemscriptAsm
|
|
|
|
> **innerRedeemscriptAsm**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1177](https://github.com/bitcoinresearchkit/brk/blob/25b226856307047c5c10a075ec57219ca9987c38/modules/brk-client/index.js#L1177)
|
|
|
|
Inner redeemscript in assembly (for P2SH-wrapped SegWit: scriptsig + witness both present)
|
|
|
|
***
|
|
|
|
### innerWitnessscriptAsm
|
|
|
|
> **innerWitnessscriptAsm**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1178](https://github.com/bitcoinresearchkit/brk/blob/25b226856307047c5c10a075ec57219ca9987c38/modules/brk-client/index.js#L1178)
|
|
|
|
Inner witnessscript in assembly (for P2WSH: last witness item decoded as script)
|
|
|
|
***
|
|
|
|
### isCoinbase
|
|
|
|
> **isCoinbase**: `boolean`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1175](https://github.com/bitcoinresearchkit/brk/blob/25b226856307047c5c10a075ec57219ca9987c38/modules/brk-client/index.js#L1175)
|
|
|
|
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:1171](https://github.com/bitcoinresearchkit/brk/blob/25b226856307047c5c10a075ec57219ca9987c38/modules/brk-client/index.js#L1171)
|
|
|
|
Information about the previous output being spent
|
|
|
|
***
|
|
|
|
### scriptsig
|
|
|
|
> **scriptsig**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1172](https://github.com/bitcoinresearchkit/brk/blob/25b226856307047c5c10a075ec57219ca9987c38/modules/brk-client/index.js#L1172)
|
|
|
|
Signature script (hex, for non-SegWit inputs)
|
|
|
|
***
|
|
|
|
### scriptsigAsm
|
|
|
|
> **scriptsigAsm**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1173](https://github.com/bitcoinresearchkit/brk/blob/25b226856307047c5c10a075ec57219ca9987c38/modules/brk-client/index.js#L1173)
|
|
|
|
Signature script in assembly format
|
|
|
|
***
|
|
|
|
### sequence
|
|
|
|
> **sequence**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1176](https://github.com/bitcoinresearchkit/brk/blob/25b226856307047c5c10a075ec57219ca9987c38/modules/brk-client/index.js#L1176)
|
|
|
|
Input sequence number
|
|
|
|
***
|
|
|
|
### txid
|
|
|
|
> **txid**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1169](https://github.com/bitcoinresearchkit/brk/blob/25b226856307047c5c10a075ec57219ca9987c38/modules/brk-client/index.js#L1169)
|
|
|
|
Transaction ID of the output being spent
|
|
|
|
***
|
|
|
|
### vout
|
|
|
|
> **vout**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1170](https://github.com/bitcoinresearchkit/brk/blob/25b226856307047c5c10a075ec57219ca9987c38/modules/brk-client/index.js#L1170)
|
|
|
|
Output index being spent (u16: coinbase is 65535, mempool.space uses u32: 4294967295)
|
|
|
|
***
|
|
|
|
### witness
|
|
|
|
> **witness**: [`Witness`](../type-aliases/Witness.md)
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1174](https://github.com/bitcoinresearchkit/brk/blob/25b226856307047c5c10a075ec57219ca9987c38/modules/brk-client/index.js#L1174)
|
|
|
|
Witness data (stack items, present for SegWit inputs; hex-encoded on the wire)
|