Skip to main content

bsv.Transaction.Input.PublicKeyHash

scrypt-ts / bsv / Transaction / Input / PublicKeyHash

Class: PublicKeyHash

Transaction.Input.PublicKeyHash

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new PublicKeyHash(params)

Parameters

NameType
paramsobject

Inherited from

Input.constructor

Defined in

node_modules/bsv/index.d.ts:833

Properties

output

Optional output: Output

Inherited from

Input.output

Defined in

node_modules/bsv/index.d.ts:832


outputIndex

Readonly outputIndex: number

Inherited from

Input.outputIndex

Defined in

node_modules/bsv/index.d.ts:829


prevTxId

Readonly prevTxId: Buffer

Inherited from

Input.prevTxId

Defined in

node_modules/bsv/index.d.ts:828


script

Readonly script: Script

Inherited from

Input.script

Defined in

node_modules/bsv/index.d.ts:831


sequenceNumber

sequenceNumber: number

Inherited from

Input.sequenceNumber

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

Inherited from

Input.getPreimage

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

Inherited from

Input.getSignatures

Defined in

node_modules/bsv/index.d.ts:836


isValidSignature

isValidSignature(tx, sig): boolean

Parameters

NameType
txTransaction
sigany

Returns

boolean

Inherited from

Input.isValidSignature

Defined in

node_modules/bsv/index.d.ts:834


setScript

setScript(script): PublicKeyHash

Parameters

NameType
scriptScript

Returns

PublicKeyHash

Inherited from

Input.setScript

Defined in

node_modules/bsv/index.d.ts:835