Skip to main content

bsv.Transaction.Input-1

scrypt-ts / bsv / Transaction / Input

Class: Input

bsv.Transaction.Input

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Input(params)

Parameters

NameType
paramsobject

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

NameType
txTransaction
inputIndexnumber
sigtype?number
isLowS?boolean

Returns

any

Defined in

node_modules/bsv/index.d.ts:837


getSignatures

getSignatures(tx, privateKey, inputIndex, sigtype?): any

Parameters

NameType
txTransaction
privateKeyPrivateKey
inputIndexnumber
sigtype?number

Returns

any

Defined in

node_modules/bsv/index.d.ts:836


isValidSignature

isValidSignature(tx, sig): boolean

Parameters

NameType
txTransaction
sigany

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:834


setScript

setScript(script): Input

Parameters

NameType
scriptScript

Returns

Input

Defined in

node_modules/bsv/index.d.ts:835