bsv.Script-1
Class: Script
bsv.Script
Table of contents
Constructors
Properties
Methods
- add
- checkMinimalPush
- classify
- classifyInput
- classifyOutput
- clone
- equals
- findAndDelete
- getAddressInfo
- getData
- getPublicKey
- getPublicKeyHash
- getSignatureOperationsCount
- hasCodeseparators
- isDataOut
- isMultisigIn
- isMultisigOut
- isPublicKeyHashIn
- isPublicKeyHashOut
- isPublicKeyIn
- isPublicKeyOut
- isPushOnly
- isSafeDataOut
- isScriptHashIn
- isScriptHashOut
- isStandard
- isWitnessProgram
- isWitnessPublicKeyHashOut
- isWitnessScriptHashOut
- prepend
- removeCodeseparators
- set
- subScript
- toASM
- toAddress
- toBuffer
- toHex
- toString
- fromChunks
Constructors
constructor
• new Script(data
)
Parameters
Name | Type |
---|---|
data | string | 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
Name | Type |
---|---|
obj | any |
Returns
Defined in
node_modules/bsv/index.d.ts:1347
checkMinimalPush
▸ checkMinimalPush(i
): boolean
Parameters
Name | Type |
---|---|
i | number |
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
Defined in
node_modules/bsv/index.d.ts:1361
equals
▸ equals(script
): boolean
Parameters
Name | Type |
---|---|
script | Script |
Returns
boolean
Defined in
node_modules/bsv/index.d.ts:1352
findAndDelete
▸ findAndDelete(script
): Script
Parameters
Name | Type |
---|---|
script | Script |
Returns
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
Name | Type |
---|---|
accurate | boolean |
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
Name | Type |
---|---|
obj | any |
Returns
Defined in
node_modules/bsv/index.d.ts:1346
removeCodeseparators
▸ removeCodeseparators(): Script
Returns
Defined in
node_modules/bsv/index.d.ts:1350
set
▸ set(obj
): Script
Parameters
Name | Type |
---|---|
obj | object |
Returns
Defined in
node_modules/bsv/index.d.ts:1311
subScript
▸ subScript(n
): Script
Parameters
Name | Type |
---|---|
n | number |
Returns
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
Name | Type |
---|---|
network? | Type |
Returns
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
Name | Type |
---|---|
chunks | IOpChunk [] |
Returns
Defined in
node_modules/bsv/index.d.ts:1365