Skip to main content

bsv.Transaction.Output

scrypt-ts / bsv / Transaction / Output

Class: Output

bsv.Transaction.Output

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Output(data)

Parameters

NameType
dataObject
data.satoshisnumber
data.scriptScript

Defined in

node_modules/bsv/index.d.ts:814

Properties

satoshis

Readonly satoshis: number

Defined in

node_modules/bsv/index.d.ts:811


satoshisBN

Readonly satoshisBN: BN

Defined in

node_modules/bsv/index.d.ts:812


script

Readonly script: Script

Defined in

node_modules/bsv/index.d.ts:810


spentTxId

spentTxId: string

Defined in

node_modules/bsv/index.d.ts:813

Methods

getSize

getSize(): number

Returns

number

Defined in

node_modules/bsv/index.d.ts:822


inspect

inspect(): string

Returns

string

Defined in

node_modules/bsv/index.d.ts:820


setScript

setScript(script): Output

Parameters

NameType
scriptstring | Buffer | Script

Returns

Output

Defined in

node_modules/bsv/index.d.ts:819


toBufferWriter

toBufferWriter(writer?): BufferWriter

Parameters

NameType
writer?BufferWriter

Returns

BufferWriter

Defined in

node_modules/bsv/index.d.ts:823


toObject

toObject(): Object

Returns

Object

NameType
satoshisnumber
scriptstring

Defined in

node_modules/bsv/index.d.ts:821


fromBufferReader

Static fromBufferReader(reader): Output

Parameters

NameType
readerBufferReader

Returns

Output

Defined in

node_modules/bsv/index.d.ts:824