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
Name | Type |
---|---|
data | Object |
data.satoshis | number |
data.script | Script |
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
Name | Type |
---|---|
script | string | Buffer | Script |
Returns
Defined in
node_modules/bsv/index.d.ts:819
toBufferWriter
▸ toBufferWriter(writer?
): BufferWriter
Parameters
Name | Type |
---|---|
writer? | BufferWriter |
Returns
Defined in
node_modules/bsv/index.d.ts:823
toObject
▸ toObject(): Object
Returns
Object
Name | Type |
---|---|
satoshis | number |
script | string |
Defined in
node_modules/bsv/index.d.ts:821
fromBufferReader
▸ Static
fromBufferReader(reader
): Output
Parameters
Name | Type |
---|---|
reader | BufferReader |
Returns
Defined in
node_modules/bsv/index.d.ts:824