Psbt

fun Psbt(tx: Transaction)

Implements the PSBT creator role; initializes a PSBT for the given unsigned transaction.

Return

the psbt with empty inputs and outputs.

Parameters

tx

unsigned transaction skeleton.


fun Psbt(    global: Global,     inputs: List<Input>,     outputs: List<Output>)

Parameters

global

global psbt data containing the transaction to be signed.

inputs

signing data for each input of the transaction to be signed (order matches the unsigned tx).

outputs

signing data for each output of the transaction to be signed (order matches the unsigned tx).