Skip to main content

bsv.Script

scrypt-ts / bsv / Script

Namespace: Script

bsv.Script

Table of contents

Namespaces

Classes

Interfaces

Variables

Functions

Variables

types

Const types: Object

Type declaration

NameType
DATA_OUTstring

Defined in

node_modules/bsv/index.d.ts:1208

Functions

buildMultisigIn

buildMultisigIn(pubkeys, threshold, signatures, opts): Script

Parameters

NameType
pubkeysPublicKey[]
thresholdnumber
signaturesBuffer[]
optsobject

Returns

Script

Defined in

node_modules/bsv/index.d.ts:1223


buildMultisigOut

buildMultisigOut(publicKeys, threshold, opts): Script

Parameters

NameType
publicKeysPublicKey[]
thresholdnumber
optsobject

Returns

Script

Defined in

node_modules/bsv/index.d.ts:1218


buildPublicKeyHashIn

buildPublicKeyHashIn(publicKey, signature, sigtype): Script

Parameters

NameType
publicKeyPublicKey
signatureBuffer | Signature
sigtypenumber

Returns

Script

Defined in

node_modules/bsv/index.d.ts:1243


buildPublicKeyHashOut

buildPublicKeyHashOut(address): Script

Parameters

NameType
addressstring | PublicKey | Address

Returns

Script

Defined in

node_modules/bsv/index.d.ts:1230


buildPublicKeyIn

buildPublicKeyIn(signature, sigtype): Script

Parameters

NameType
signatureBuffer | Signature
sigtypenumber

Returns

Script

Defined in

node_modules/bsv/index.d.ts:1239


buildPublicKeyOut

buildPublicKeyOut(pubkey): Script

Parameters

NameType
pubkeyPublicKey

Returns

Script

Defined in

node_modules/bsv/index.d.ts:1233


buildSafeDataOut

buildSafeDataOut(data, encoding?): Script

Parameters

NameType
datastring | Buffer | (string | Buffer)[]
encoding?string

Returns

Script

Defined in

node_modules/bsv/index.d.ts:1234


buildScriptHashOut

buildScriptHashOut(script): Script

Parameters

NameType
scriptScript

Returns

Script

Defined in

node_modules/bsv/index.d.ts:1238


empty

empty(): Script

Returns

Script

Defined in

node_modules/bsv/index.d.ts:1260


fromASM

fromASM(str): Script

Parameters

NameType
strstring

Returns

Script

Defined in

node_modules/bsv/index.d.ts:1250


fromAddress

fromAddress(address): Script

Parameters

NameType
addressstring | Address

Returns

Script

Defined in

node_modules/bsv/index.d.ts:1249


fromBuffer

fromBuffer(buf): Script

Parameters

NameType
bufBuffer

Returns

Script

Defined in

node_modules/bsv/index.d.ts:1253


fromHex

fromHex(hex): Script

Parameters

NameType
hexstring

Returns

Script

Defined in

node_modules/bsv/index.d.ts:1251


fromString

fromString(str): Script

Parameters

NameType
strstring

Returns

Script

Defined in

node_modules/bsv/index.d.ts:1252


toASM

toASM(): string

Returns

string

Defined in

node_modules/bsv/index.d.ts:1255


toBuffer

toBuffer(): Buffer

Returns

Buffer

Defined in

node_modules/bsv/index.d.ts:1256


toHex

toHex(): string

Returns

string

Defined in

node_modules/bsv/index.d.ts:1257


toString

toString(): string

Returns

string

Defined in

node_modules/bsv/index.d.ts:1258