mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-30 09:30:00 -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:1057](https://github.com/bitcoinresearchkit/brk/blob/e4496742a4964a986078f3a65d3bfdc1e47a5eba/modules/brk-client/index.js#L1057)
|
|
|
|
## Properties
|
|
|
|
### innerRedeemscriptAsm
|
|
|
|
> **innerRedeemscriptAsm**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1066](https://github.com/bitcoinresearchkit/brk/blob/e4496742a4964a986078f3a65d3bfdc1e47a5eba/modules/brk-client/index.js#L1066)
|
|
|
|
Inner redeemscript in assembly (for P2SH-wrapped SegWit: scriptsig + witness both present)
|
|
|
|
***
|
|
|
|
### innerWitnessscriptAsm
|
|
|
|
> **innerWitnessscriptAsm**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1067](https://github.com/bitcoinresearchkit/brk/blob/e4496742a4964a986078f3a65d3bfdc1e47a5eba/modules/brk-client/index.js#L1067)
|
|
|
|
Inner witnessscript in assembly (for P2WSH: last witness item decoded as script)
|
|
|
|
***
|
|
|
|
### isCoinbase
|
|
|
|
> **isCoinbase**: `boolean`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1064](https://github.com/bitcoinresearchkit/brk/blob/e4496742a4964a986078f3a65d3bfdc1e47a5eba/modules/brk-client/index.js#L1064)
|
|
|
|
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:1060](https://github.com/bitcoinresearchkit/brk/blob/e4496742a4964a986078f3a65d3bfdc1e47a5eba/modules/brk-client/index.js#L1060)
|
|
|
|
Information about the previous output being spent
|
|
|
|
***
|
|
|
|
### scriptsig
|
|
|
|
> **scriptsig**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1061](https://github.com/bitcoinresearchkit/brk/blob/e4496742a4964a986078f3a65d3bfdc1e47a5eba/modules/brk-client/index.js#L1061)
|
|
|
|
Signature script (hex, for non-SegWit inputs)
|
|
|
|
***
|
|
|
|
### scriptsigAsm
|
|
|
|
> **scriptsigAsm**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1062](https://github.com/bitcoinresearchkit/brk/blob/e4496742a4964a986078f3a65d3bfdc1e47a5eba/modules/brk-client/index.js#L1062)
|
|
|
|
Signature script in assembly format
|
|
|
|
***
|
|
|
|
### sequence
|
|
|
|
> **sequence**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1065](https://github.com/bitcoinresearchkit/brk/blob/e4496742a4964a986078f3a65d3bfdc1e47a5eba/modules/brk-client/index.js#L1065)
|
|
|
|
Input sequence number
|
|
|
|
***
|
|
|
|
### txid
|
|
|
|
> **txid**: `string`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1058](https://github.com/bitcoinresearchkit/brk/blob/e4496742a4964a986078f3a65d3bfdc1e47a5eba/modules/brk-client/index.js#L1058)
|
|
|
|
Transaction ID of the output being spent
|
|
|
|
***
|
|
|
|
### vout
|
|
|
|
> **vout**: `number`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:1059](https://github.com/bitcoinresearchkit/brk/blob/e4496742a4964a986078f3a65d3bfdc1e47a5eba/modules/brk-client/index.js#L1059)
|
|
|
|
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:1063](https://github.com/bitcoinresearchkit/brk/blob/e4496742a4964a986078f3a65d3bfdc1e47a5eba/modules/brk-client/index.js#L1063)
|
|
|
|
Witness data (hex-encoded stack items, present for SegWit inputs)
|