ExtPsbt
bitcoinjs-lib / ExtPsbt
Class: ExtPsbt
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:91
Extended [Psbt][https://docs.scrypt.io/references/bitcoinjs-lib/classes/Psbt](https://docs.scrypt.io/references/bitcoinjs-lib/classes/Psbt) class. Used to construct transactions to unlock smart contracts.
Extends
Psbt
Implements
Constructors
new ExtPsbt()
new ExtPsbt(
opts
,data
?):ExtPsbt
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:92
Parameters
opts
PsbtOptsOptional
= {}
data?
Psbt
Returns
Overrides
Psbt.constructor
Properties
data
readonly
data:Psbt
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:61
Implementation of
Inherited from
Psbt.data
Accessors
accessedInputStateProofs
Get Signature
get accessedInputStateProofs():
boolean
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:164
Returns
boolean
inputAmount
Get Signature
get inputAmount():
number
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:385
Returns
number
inputCount
Get Signature
get inputCount():
number
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:68
Returns
number
Implementation of
Inherited from
Psbt.inputCount
isFinalized
Get Signature
get isFinalized():
boolean
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:539
Whether the PSBT is finalized.
Returns
boolean
Whether the PSBT is finalized.
Implementation of
isFinalizing
Get Signature
get isFinalizing():
boolean
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:481
Whether the PSBT starts finalizing.
Returns
boolean
Whether the PSBT starts finalizing.
Implementation of
isSealed
Get Signature
get isSealed():
boolean
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:485
Returns
boolean
locktime
Get Signature
get locktime():
number
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:71
Returns
number
Set Signature
set locktime(
locktime
):void
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:72
Parameters
locktime
number
Returns
void
Implementation of
Inherited from
Psbt.locktime
network
Get Signature
get network():
Network
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:458
Returns
Network
outputAmount
Get Signature
get outputAmount():
number
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:389
Returns
number
stateHashRoot
Get Signature
get stateHashRoot():
ByteString
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:152
Returns
stateHashRootScript
Get Signature
get stateHashRootScript():
Uint8Array
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:160
Returns
Uint8Array
txInputs
Get Signature
get txInputs():
PsbtTxInput
[]
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:73
Returns
PsbtTxInput
[]
Implementation of
Inherited from
Psbt.txInputs
txOutputs
Get Signature
get txOutputs():
PsbtTxOutput
[]
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:74
Returns
PsbtTxOutput
[]
Implementation of
Inherited from
Psbt.txOutputs
unsignedTx
Get Signature
get unsignedTx():
Transaction
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:452
The unsigned transaction when the PSBT is not finalized. note:
Returns
Transaction
The unsigned transaction when the PSBT is not finalized. note:
Implementation of
version
Get Signature
get version():
number
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:69
Returns
number
Set Signature
set version(
version
):void
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:70
Parameters
version
number
Returns
void
Implementation of
Inherited from
Psbt.version
Methods
addCovenantInput()
addCovenantInput(
covenant
,subContractAlias
?):this
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:264
Add an input to spend the covenant.
Parameters
covenant
subContractAlias?
string
Returns
this
Implementation of
addCovenantOutput()
addCovenantOutput(
covenant
,satoshis
):this
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:349
Add an output to create new covenant.
Parameters
covenant
a new covenant
satoshis
number
the output includes the amount of satoshis.
Returns
this
Implementation of
addInput()
addInput(
inputData
):this
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:182
Parameters
inputData
PsbtInputExtended
Returns
this
Implementation of
Overrides
Psbt.addInput
addInputs()
addInputs(
inputDatas
):this
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:81
Parameters
inputDatas
PsbtInputExtended
[]
Returns
this
Implementation of
Inherited from
Psbt.addInputs
addOutput()
addOutput(
outputData
):this
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:242
Parameters
outputData
PsbtOutputExtended
Returns
this
Implementation of
Overrides
Psbt.addOutput
addOutputs()
addOutputs(
outputDatas
):this
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:83
Parameters
outputDatas
PsbtOutputExtended
[]
Returns
this
Implementation of
Inherited from
Psbt.addOutputs
addUnknownKeyValToGlobal()
addUnknownKeyValToGlobal(
keyVal
):this
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:123
Parameters
keyVal
KeyValue
Returns
this
Implementation of
IExtPsbt
.addUnknownKeyValToGlobal
Inherited from
Psbt.addUnknownKeyValToGlobal
addUnknownKeyValToInput()
addUnknownKeyValToInput(
inputIndex
,keyVal
):this
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:124
Parameters
inputIndex
number
keyVal
KeyValue
Returns
this
Implementation of
IExtPsbt
.addUnknownKeyValToInput
Inherited from
Psbt.addUnknownKeyValToInput
addUnknownKeyValToOutput()
addUnknownKeyValToOutput(
outputIndex
,keyVal
):this
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:125
Parameters
outputIndex
number
keyVal
KeyValue
Returns
this
Implementation of
IExtPsbt
.addUnknownKeyValToOutput
Inherited from
Psbt.addUnknownKeyValToOutput
change()
change(
toAddr
,feeRate
):this
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:393
Add a change output to the transaction if neccesarry.
Parameters
toAddr
string
feeRate
number
the fee rate in satoshi per byte
Returns
this
Implementation of
clearFinalizedInput()
clearFinalizedInput(
inputIndex
):this
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:126
Parameters
inputIndex
number
Returns
this
Implementation of
Inherited from
Psbt.clearFinalizedInput
clone()
clone():
Psbt
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:76
Returns
Psbt
Implementation of
Inherited from
Psbt.clone
combine()
combine(...
those
):this
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:75
Parameters
those
...Psbt
[]
Returns
this
Implementation of
Inherited from
Psbt.combine
estimateFee()
estimateFee(
feeRate
):number
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:468
Estimate the fee of the transaction.
Parameters
feeRate
number
the fee rate in satoshi per byte
Returns
number
the estimated fee in satoshis
Implementation of
estimateVSize()
estimateVSize():
number
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:463
Estimate the virtual size of the transaction.
Returns
number
Implementation of
extractTransaction()
extractTransaction(
disableFeeCheck
?):Transaction
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:85
Parameters
disableFeeCheck?
boolean
Returns
Transaction
Implementation of
Inherited from
Psbt.extractTransaction
finalizeAllInputs()
finalizeAllInputs():
this
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:489
Returns
this
Implementation of
Overrides
Psbt.finalizeAllInputs
finalizeInput()
finalizeInput(
inputIndex
,finalScriptsFunc
?):this
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:89
Parameters
inputIndex
number
finalScriptsFunc?
FinalScriptsFunc
| FinalTaprootScriptsFunc
Returns
this
Implementation of
Inherited from
Psbt.finalizeInput
finalizeTaprootInput()
finalizeTaprootInput(
inputIndex
,tapLeafHashToFinalize
?,finalScriptsFunc
?):this
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:90
Parameters
inputIndex
number
tapLeafHashToFinalize?
Uint8Array
finalScriptsFunc?
FinalTaprootScriptsFunc
Returns
this
Implementation of
Inherited from
Psbt.finalizeTaprootInput
getChangeInfo()
getChangeInfo():
TxOut
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:432
Get the change output information.
Returns
Implementation of
getChangeUTXO()
getChangeUTXO():
StateProvableUtxo
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:709
Returns
StateProvableUtxo
getFee()
getFee():
bigint
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:87
Returns
bigint
Implementation of
Inherited from
Psbt.getFee
getFeeRate()
getFeeRate():
number
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:86
Returns
number
Implementation of
Inherited from
Psbt.getFeeRate
getInputCovernant()
getInputCovernant(
inputIndex
):Covenant
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:701
Parameters
inputIndex
number
Returns
getInputCtx()
getInputCtx(
inputIndex
):InputContext
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:144
Get the context of the current PSBT input in which this contract is called or spent.
Parameters
inputIndex
number
the index of the input in the PSBT
Returns
InputContext
the context of the current PSBT input
Implementation of
getInputType()
getInputType(
inputIndex
):AllScriptType
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:93
Parameters
inputIndex
number
Returns
AllScriptType
Implementation of
Inherited from
Psbt.getInputType
getlockTime()
getlockTime():
number
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:100
Get the lockTime of the current PSBT.
Returns
number
lockTime of the current PSBT input
Implementation of
getOutputSatoshisList()
getOutputSatoshisList():
string
[]
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:748
Returns
string
[]
getSequence()
getSequence(
inputIndex
):number
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:97
Get the sequence of the input by inputIndex.
Parameters
inputIndex
number
the index of the input in the PSBT
Returns
number
the sequence of the PSBT input
Implementation of
getSig()
getSig(
inputIndex
,options
):Sig
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:650
Get signature from signed psbt by inputIndex
Parameters
inputIndex
number
index of the input
options
Omit
\<ToSignInput
, "index"
>
options to find signatures
Returns
the signature, if no signature found, return a dummy signature.
Implementation of
getSigHashType()
getSigHashType(
inputIndex
):SigHashType
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:140
Get the sighash type for the current input.
Parameters
inputIndex
number
the index of the input in the PSBT
Returns
the sighash type for the current input
Implementation of
getStatefulCovenantUtxo()
getStatefulCovenantUtxo(
outputIndex
):StateProvableUtxo
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:735
Parameters
outputIndex
number
Returns
StateProvableUtxo
getStatefulInputUtxo()
getStatefulInputUtxo(
inputIndex
):StateProvableUtxo
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:705
Get the stateful covenant utxo of the current input
Parameters
inputIndex
number
the index of the input in the PSBT
Returns
StateProvableUtxo
the stateful covenant utxo of the current input
Implementation of
getTxoStateHashes()
getTxoStateHashes():
StateHashes
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:148
Get the output state hashes of the current transaction
Returns
the output state hashes of the current transaction
Implementation of
getUtxo()
getUtxo(
outputIndex
):StateProvableUtxo
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:721
Parameters
outputIndex
number
Returns
StateProvableUtxo
inputHasHDKey()
inputHasHDKey(
inputIndex
,root
):boolean
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:95
Parameters
inputIndex
number
root
HDSigner
Returns
boolean
Implementation of
Inherited from
Psbt.inputHasHDKey
inputHasPubkey()
inputHasPubkey(
inputIndex
,pubkey
):boolean
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:94
Parameters
inputIndex
number
pubkey
Uint8Array
Returns
boolean
Implementation of
Inherited from
Psbt.inputHasPubkey
outputHasHDKey()
outputHasHDKey(
outputIndex
,root
):boolean
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:97
Parameters
outputIndex
number
root
HDSigner
Returns
boolean
Implementation of
Inherited from
Psbt.outputHasHDKey
outputHasPubkey()
outputHasPubkey(
outputIndex
,pubkey
):boolean
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:96
Parameters
outputIndex
number
pubkey
Uint8Array
Returns
boolean
Implementation of
Inherited from
Psbt.outputHasPubkey
psbtOptions()
psbtOptions(
autoFinalized
):SignOptions
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:632
Parameters
autoFinalized
boolean
= false
Returns
seal()
seal():
this
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:762
Returns
this
setInputSequence()
setInputSequence(
inputIndex
,sequence
):this
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:259
Parameters
inputIndex
number
sequence
number
Returns
this
Implementation of
Overrides
Psbt.setInputSequence
setLocktime()
setLocktime(
locktime
):this
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:254
Parameters
locktime
number
Returns
this
Implementation of
Overrides
Psbt.setLocktime
setMaximumFeeRate()
setMaximumFeeRate(
satoshiPerByte
):void
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:77
Parameters
satoshiPerByte
number
Returns
void
Implementation of
Inherited from
Psbt.setMaximumFeeRate
setSighashType()
setSighashType(
inputIndex
,sigHashType
):void
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:128
Set the sighash type for the current input.
used for @method
decorator to set the sighash type for the current input.
sighash type is used to generate the preimage for the current input.
Parameters
inputIndex
number
the index of the input in the PSBT
sigHashType
the sighash type to set
Returns
void
Implementation of
setVersion()
setVersion(
version
):this
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:249
Parameters
version
number
Returns
this
Implementation of
Overrides
Psbt.setVersion
signAllInputs()
signAllInputs(
keyPair
,sighashTypes
?):this
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:106
Parameters
keyPair
Signer
sighashTypes?
number
[]
Returns
this
Implementation of
Inherited from
Psbt.signAllInputs
signAllInputsAsync()
signAllInputsAsync(
keyPair
,sighashTypes
?):Promise
\<void
>
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:107
Parameters
keyPair
Signer
| SignerAsync
sighashTypes?
number
[]
Returns
Promise
\<void
>
Implementation of
Inherited from
Psbt.signAllInputsAsync
signAllInputsHD()
signAllInputsHD(
hdKeyPair
,sighashTypes
?):this
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:102
Parameters
hdKeyPair
HDSigner
sighashTypes?
number
[]
Returns
this
Implementation of
Inherited from
Psbt.signAllInputsHD
signAllInputsHDAsync()
signAllInputsHDAsync(
hdKeyPair
,sighashTypes
?):Promise
\<void
>
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:103
Parameters
hdKeyPair
HDSigner
| HDSignerAsync
sighashTypes?
number
[]
Returns
Promise
\<void
>
Implementation of
Inherited from
Psbt.signAllInputsHDAsync
signInput()
signInput(
inputIndex
,keyPair
,sighashTypes
?):this
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:108
Parameters
inputIndex
number
keyPair
Signer
sighashTypes?
number
[]
Returns
this
Implementation of
Inherited from
Psbt.signInput
signInputAsync()
signInputAsync(
inputIndex
,keyPair
,sighashTypes
?):Promise
\<void
>
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:112
Parameters
inputIndex
number
keyPair
Signer
| SignerAsync
sighashTypes?
number
[]
Returns
Promise
\<void
>
Implementation of
Inherited from
Psbt.signInputAsync
signInputHD()
signInputHD(
inputIndex
,hdKeyPair
,sighashTypes
?):this
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:104
Parameters
inputIndex
number
hdKeyPair
HDSigner
sighashTypes?
number
[]
Returns
this
Implementation of
Inherited from
Psbt.signInputHD
signInputHDAsync()
signInputHDAsync(
inputIndex
,hdKeyPair
,sighashTypes
?):Promise
\<void
>
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:105
Parameters
inputIndex
number
hdKeyPair
HDSigner
| HDSignerAsync
sighashTypes?
number
[]
Returns
Promise
\<void
>
Implementation of
Inherited from
Psbt.signInputHDAsync
signTaprootInput()
signTaprootInput(
inputIndex
,keyPair
,tapLeafHashToSign
?,sighashTypes
?):this
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:109
Parameters
inputIndex
number
keyPair
Signer
tapLeafHashToSign?
Uint8Array
sighashTypes?
number
[]
Returns
this
Implementation of
Inherited from
Psbt.signTaprootInput
signTaprootInputAsync()
signTaprootInputAsync(
inputIndex
,keyPair
,tapLeafHash
?,sighashTypes
?):Promise
\<void
>
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:113
Parameters
inputIndex
number
keyPair
Signer
| SignerAsync
tapLeafHash?
Uint8Array
sighashTypes?
number
[]
Returns
Promise
\<void
>
Implementation of
IExtPsbt
.signTaprootInputAsync
Inherited from
Psbt.signTaprootInputAsync
spendUTXO()
spendUTXO(
utxos
):this
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:210
Add input(s) for current psbt to spend the utxos.
Parameters
utxos
the utxos to spend
ExtUtxo
| ExtUtxo
[]
Returns
this
this
toBase64()
toBase64():
string
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:119
Returns
string
Implementation of
Inherited from
Psbt.toBase64
toBuffer()
toBuffer():
Uint8Array
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:117
Returns
Uint8Array
Implementation of
Inherited from
Psbt.toBuffer
toHex()
toHex():
string
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:118
Returns
string
Implementation of
Inherited from
Psbt.toHex
txHashPreimage()
txHashPreimage():
string
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:744
Returns
string
updateCovenantInput()
updateCovenantInput(
inputIndex
,covenant
,subContractCall
):this
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:309
Populate the witness for the covenant spending input.
Parameters
inputIndex
number
index of the input
covenant
the spent covenant
subContractCall
SubContractCall
A options used to determine how to unlock the covenant.
Returns
this
Implementation of
updateGlobal()
updateGlobal(
updateData
):this
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:120
Parameters
updateData
PsbtGlobalUpdate
Returns
this
Implementation of
Inherited from
Psbt.updateGlobal
updateInput()
updateInput(
inputIndex
,updateData
):this
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:121
Parameters
inputIndex
number
updateData
PsbtInputUpdate
Returns
this
Implementation of
Inherited from
Psbt.updateInput
updateOutput()
updateOutput(
outputIndex
,updateData
):this
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:122
Parameters
outputIndex
number
updateData
PsbtOutputUpdate
Returns
this
Implementation of
Inherited from
Psbt.updateOutput
validateSignaturesOfAllInputs()
validateSignaturesOfAllInputs(
validator
):boolean
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:98
Parameters
validator
ValidateSigFunction
Returns
boolean
Implementation of
IExtPsbt
.validateSignaturesOfAllInputs
Inherited from
Psbt.validateSignaturesOfAllInputs
validateSignaturesOfInput()
validateSignaturesOfInput(
inputIndex
,validator
,pubkey
?):boolean
Defined in: node_modules/@scrypt-inc/bitcoinjs-lib/dist/cjs/psbt.d.ts:99
Parameters
inputIndex
number
validator
ValidateSigFunction
pubkey?
Uint8Array
Returns
boolean
Implementation of
IExtPsbt
.validateSignaturesOfInput
Inherited from
Psbt.validateSignaturesOfInput
create()
static
create(opts
,data
?):ExtPsbt
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:104
Parameters
opts
ExtPsbtOpts
data?
Psbt
Returns
fromBase64()
static
fromBase64(data
,opts
):ExtPsbt
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:109
Parameters
data
string
opts
PsbtOptsOptional
= {}
Returns
Overrides
Psbt.fromBase64
fromBuffer()
static
fromBuffer(buffer
,opts
):ExtPsbt
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:119
Parameters
buffer
Uint8Array
opts
PsbtOptsOptional
= {}
Returns
Overrides
Psbt.fromBuffer
fromHex()
static
fromHex(data
,opts
):ExtPsbt
Defined in: packages/scrypt-ts-btc/src/psbt/extPsbt.ts:114
Parameters
data
string
opts
PsbtOptsOptional
= {}
Returns
Overrides
Psbt.fromHex