bsv.Transaction.Input-1
scrypt-ts / bsv / Transaction / Input
Class: Input
bsv.Transaction.Input
Hierarchy
Input
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new Input(params)
Parameters
| Name | Type |
|---|---|
params | object |
Defined in
node_modules/bsv/index.d.ts:833
Properties
output
• Optional output: Output
Defined in
node_modules/bsv/index.d.ts:832
outputIndex
• Readonly outputIndex: number
Defined in
node_modules/bsv/index.d.ts:829
prevTxId
• Readonly prevTxId: Buffer
Defined in
node_modules/bsv/index.d.ts:828
script
• Readonly script: Script
Defined in
node_modules/bsv/index.d.ts:831
sequenceNumber
• sequenceNumber: number
Defined in
node_modules/bsv/index.d.ts:830
Methods
getPreimage
▸ getPreimage(tx, inputIndex, sigtype?, isLowS?): any
Parameters
| Name | Type |
|---|---|
tx | Transaction |
inputIndex | number |
sigtype? | number |
isLowS? | boolean |
Returns
any
Defined in
node_modules/bsv/index.d.ts:837
getSignatures
▸ getSignatures(tx, privateKey, inputIndex, sigtype?): any
Parameters
| Name | Type |
|---|---|
tx | Transaction |
privateKey | PrivateKey |
inputIndex | number |
sigtype? | number |
Returns
any
Defined in
node_modules/bsv/index.d.ts:836
isValidSignature
▸ isValidSignature(tx, sig): boolean
Parameters
| Name | Type |
|---|---|
tx | Transaction |
sig | any |
Returns
boolean
Defined in
node_modules/bsv/index.d.ts:834
setScript
▸ setScript(script): Input
Parameters
| Name | Type |
|---|---|
script | Script |
Returns
Defined in
node_modules/bsv/index.d.ts:835