Skip to main content

bsv.Script-1

scrypt-ts / bsv / Script

Class: Script

bsv.Script

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Script(data)

Parameters

NameType
datastring | object

Defined in

node_modules/bsv/index.d.ts:1306

Properties

chunks

chunks: IOpChunk[]

Defined in

node_modules/bsv/index.d.ts:1308


length

length: number

Defined in

node_modules/bsv/index.d.ts:1309

Methods

add

add(obj): Script

Parameters

NameType
objany

Returns

Script

Defined in

node_modules/bsv/index.d.ts:1347


checkMinimalPush

checkMinimalPush(i): boolean

Parameters

NameType
inumber

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:1356


classify

classify(): string

Returns

string

Defined in

node_modules/bsv/index.d.ts:1340


classifyInput

classifyInput(): string

Returns

string

Defined in

node_modules/bsv/index.d.ts:1341


classifyOutput

classifyOutput(): string

Returns

string

Defined in

node_modules/bsv/index.d.ts:1342


clone

clone(): Script

Returns

Script

Defined in

node_modules/bsv/index.d.ts:1361


equals

equals(script): boolean

Parameters

NameType
scriptScript

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:1352


findAndDelete

findAndDelete(script): Script

Parameters

NameType
scriptScript

Returns

Script

Defined in

node_modules/bsv/index.d.ts:1355


getAddressInfo

getAddressInfo(): boolean | Address

Returns

boolean | Address

Defined in

node_modules/bsv/index.d.ts:1354


getData

getData(): Buffer

Returns

Buffer

Defined in

node_modules/bsv/index.d.ts:1337


getPublicKey

getPublicKey(): Buffer

Returns

Buffer

Defined in

node_modules/bsv/index.d.ts:1321


getPublicKeyHash

getPublicKeyHash(): Buffer

Returns

Buffer

Defined in

node_modules/bsv/index.d.ts:1322


getSignatureOperationsCount

getSignatureOperationsCount(accurate): number

Parameters

NameType
accurateboolean

Returns

number

Defined in

node_modules/bsv/index.d.ts:1357


hasCodeseparators

hasCodeseparators(): boolean

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:1349


isDataOut

isDataOut(): boolean

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:1334


isMultisigIn

isMultisigIn(): boolean

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:1333


isMultisigOut

isMultisigOut(): boolean

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:1332


isPublicKeyHashIn

isPublicKeyHashIn(): boolean

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:1319


isPublicKeyHashOut

isPublicKeyHashOut(): boolean

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:1318


isPublicKeyIn

isPublicKeyIn(): boolean

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:1325


isPublicKeyOut

isPublicKeyOut(): boolean

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:1324


isPushOnly

isPushOnly(): boolean

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:1338


isSafeDataOut

isSafeDataOut(): boolean

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:1335


isScriptHashIn

isScriptHashIn(): boolean

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:1331


isScriptHashOut

isScriptHashOut(): boolean

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:1327


isStandard

isStandard(): boolean

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:1344


isWitnessProgram

isWitnessProgram(): boolean

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:1330


isWitnessPublicKeyHashOut

isWitnessPublicKeyHashOut(): boolean

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:1329


isWitnessScriptHashOut

isWitnessScriptHashOut(): boolean

Returns

boolean

Defined in

node_modules/bsv/index.d.ts:1328


prepend

prepend(obj): Script

Parameters

NameType
objany

Returns

Script

Defined in

node_modules/bsv/index.d.ts:1346


removeCodeseparators

removeCodeseparators(): Script

Returns

Script

Defined in

node_modules/bsv/index.d.ts:1350


set

set(obj): Script

Parameters

NameType
objobject

Returns

Script

Defined in

node_modules/bsv/index.d.ts:1311


subScript

subScript(n): Script

Parameters

NameType
nnumber

Returns

Script

Defined in

node_modules/bsv/index.d.ts:1363


toASM

toASM(): string

Returns

string

Defined in

node_modules/bsv/index.d.ts:1314


toAddress

toAddress(network?): Address

Parameters

NameType
network?Type

Returns

Address

Defined in

node_modules/bsv/index.d.ts:1359


toBuffer

toBuffer(): Buffer

Returns

Buffer

Defined in

node_modules/bsv/index.d.ts:1313


toHex

toHex(): string

Returns

string

Defined in

node_modules/bsv/index.d.ts:1316


toString

toString(): string

Returns

string

Defined in

node_modules/bsv/index.d.ts:1315


fromChunks

Static fromChunks(chunks): Script

Parameters

NameType
chunksIOpChunk[]

Returns

Script

Defined in

node_modules/bsv/index.d.ts:1365