bsv.Script
Namespace: Script
bsv.Script
Table of contents
Namespaces
Classes
Interfaces
Variables
Functions
- buildMultisigIn
- buildMultisigOut
- buildPublicKeyHashIn
- buildPublicKeyHashOut
- buildPublicKeyIn
- buildPublicKeyOut
- buildSafeDataOut
- buildScriptHashOut
- empty
- fromASM
- fromAddress
- fromBuffer
- fromHex
- fromString
- toASM
- toBuffer
- toHex
- toString
Variables
types
• Const
types: Object
Type declaration
Name | Type |
---|---|
DATA_OUT | string |
Defined in
node_modules/bsv/index.d.ts:1208
Functions
buildMultisigIn
▸ buildMultisigIn(pubkeys
, threshold
, signatures
, opts
): Script
Parameters
Name | Type |
---|---|
pubkeys | PublicKey [] |
threshold | number |
signatures | Buffer [] |
opts | object |
Returns
Defined in
node_modules/bsv/index.d.ts:1223
buildMultisigOut
▸ buildMultisigOut(publicKeys
, threshold
, opts
): Script
Parameters
Name | Type |
---|---|
publicKeys | PublicKey [] |
threshold | number |
opts | object |
Returns
Defined in
node_modules/bsv/index.d.ts:1218
buildPublicKeyHashIn
▸ buildPublicKeyHashIn(publicKey
, signature
, sigtype
): Script
Parameters
Name | Type |
---|---|
publicKey | PublicKey |
signature | Buffer | Signature |
sigtype | number |
Returns
Defined in
node_modules/bsv/index.d.ts:1243
buildPublicKeyHashOut
▸ buildPublicKeyHashOut(address
): Script
Parameters
Name | Type |
---|---|
address | string | PublicKey | Address |
Returns
Defined in
node_modules/bsv/index.d.ts:1230
buildPublicKeyIn
▸ buildPublicKeyIn(signature
, sigtype
): Script
Parameters
Name | Type |
---|---|
signature | Buffer | Signature |
sigtype | number |
Returns
Defined in
node_modules/bsv/index.d.ts:1239
buildPublicKeyOut
▸ buildPublicKeyOut(pubkey
): Script
Parameters
Name | Type |
---|---|
pubkey | PublicKey |
Returns
Defined in
node_modules/bsv/index.d.ts:1233
buildSafeDataOut
▸ buildSafeDataOut(data
, encoding?
): Script
Parameters
Name | Type |
---|---|
data | string | Buffer | (string | Buffer )[] |
encoding? | string |
Returns
Defined in
node_modules/bsv/index.d.ts:1234
buildScriptHashOut
▸ buildScriptHashOut(script
): Script
Parameters
Name | Type |
---|---|
script | Script |
Returns
Defined in
node_modules/bsv/index.d.ts:1238
empty
▸ empty(): Script
Returns
Defined in
node_modules/bsv/index.d.ts:1260
fromASM
▸ fromASM(str
): Script
Parameters
Name | Type |
---|---|
str | string |
Returns
Defined in
node_modules/bsv/index.d.ts:1250
fromAddress
▸ fromAddress(address
): Script
Parameters
Name | Type |
---|---|
address | string | Address |
Returns
Defined in
node_modules/bsv/index.d.ts:1249
fromBuffer
▸ fromBuffer(buf
): Script
Parameters
Name | Type |
---|---|
buf | Buffer |
Returns
Defined in
node_modules/bsv/index.d.ts:1253
fromHex
▸ fromHex(hex
): Script
Parameters
Name | Type |
---|---|
hex | string |
Returns
Defined in
node_modules/bsv/index.d.ts:1251
fromString
▸ fromString(str
): Script
Parameters
Name | Type |
---|---|
str | string |
Returns
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