RPC Browser

Arguments


Help Content

finalizepsbt "psbt" ( extract )
Finalize the inputs of a PSBT. If the transaction is fully signed, it will produce a
network serialized transaction which can be broadcast with sendrawtransaction. Otherwise a PSBT will be
created which has the final_scriptSig and final_scriptWitness fields filled for inputs that are complete.
Implements the Finalizer and Extractor roles.

Arguments:
1. psbt       (string, required) A base64 string of a PSBT
2. extract    (boolean, optional, default=true) If true and the transaction is complete,
              extract and return the complete transaction in normal network serialization instead of the PSBT.

Result:
{                             (json object)
  "psbt" : "str",             (string) The base64-encoded partially signed transaction if not extracted
  "hex" : "hex",              (string) The hex-encoded network transaction if extracted
  "complete" : true|false     (boolean) If the transaction has a complete set of signatures
}

Examples:
> bitcoin-cli finalizepsbt "psbt"

psbt

{
    "name": "psbt",
    "detailsLines": [],
    "properties": [
        "string",
        "required"
    ],
    "description": "A base64 string of a PSBT"
}

extract

{
    "name": "extract",
    "detailsLines": [
        "              extract and return the complete transaction in normal network serialization instead of the PSBT."
    ],
    "properties": [
        "boolean",
        "optional",
        "default=true"
    ],
    "description": "If true and the transaction is complete,"
}

Recent (1)

Blockchain (25)

Control (6)

Generating (3)

Mining (6)

Network (13)

Rawtransactions (17)

Signer (1)

Util (8)

Wallet (61)

Zmq (1)