RPC Browser

Arguments


Help Content

walletprocesspsbt "psbt" ( sign "sighashtype" bip32derivs )

Update a PSBT with input information from our wallet and then sign inputs
that we can sign for.
Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.

Arguments:
1. psbt           (string, required) The transaction base64 string
2. sign           (boolean, optional, default=true) Also sign the transaction when updating
3. sighashtype    (string, optional, default="DEFAULT") The signature hash type to sign with if not specified by the PSBT. Must be one of
                  "DEFAULT"
                  "ALL"
                  "NONE"
                  "SINGLE"
                  "ALL|ANYONECANPAY"
                  "NONE|ANYONECANPAY"
                  "SINGLE|ANYONECANPAY"
4. bip32derivs    (boolean, optional, default=true) Include BIP 32 derivation paths for public keys if we know them

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

Examples:
> bitcoin-cli walletprocesspsbt "psbt"

psbt

{
    "name": "psbt",
    "detailsLines": [],
    "properties": [
        "string",
        "required"
    ],
    "description": "The transaction base64 string"
}

sign

{
    "name": "sign",
    "detailsLines": [],
    "properties": [
        "boolean",
        "optional",
        "default=true"
    ],
    "description": "Also sign the transaction when updating"
}

sighashtype

{
    "name": "sighashtype",
    "detailsLines": [
        "                  \"DEFAULT\"",
        "                  \"ALL\"",
        "                  \"NONE\"",
        "                  \"SINGLE\"",
        "                  \"ALL|ANYONECANPAY\"",
        "                  \"NONE|ANYONECANPAY\"",
        "                  \"SINGLE|ANYONECANPAY\""
    ],
    "properties": [
        "string",
        "optional",
        "default=\"DEFAULT\""
    ],
    "description": "The signature hash type to sign with if not specified by the PSBT. Must be one of"
}

bip32derivs

{
    "name": "bip32derivs",
    "detailsLines": [],
    "properties": [
        "boolean",
        "optional",
        "default=true"
    ],
    "description": "Include BIP 32 derivation paths for public keys if we know them"
}

Recent (3)

Blockchain (25)

Control (6)

Generating (3)

Mining (6)

Network (13)

Rawtransactions (17)

Signer (1)

Util (8)

Wallet (61)

Zmq (1)