bitcoin cli – Taproot UTXO uncooked tx assist – “error”: “Witness program was handed an empty witness”

0
74


Learn to ship a taproot output by way of bitcoin core’s bitcoin-cli.

I imported a WIF utxo containing a v1 segwit utxo.

After: createrawtransaction then fundrawtransaction, I’ll try to signal with: signrawtransactionwithwallet however will get:

{
  "hex": "hex_from_fund_command",
  "full": false,
  "errors": [
    {
      "txid": "from_v1_taproot_txid",
      "vout": n,
      "witness": [
      ],
      "scriptSig": "",
      "sequence": seq_num_not_sure_if_this_is_sensitive,
      "error": "Witness program was handed an empty witness"
    }
  ]
}

Notice: witness and scriptSig are clean. I’ve tried not offering and never offering the prevtxs with no distinction.

I am uncertain if I would like to offer redeemScript or witnessScript, I am uncertain find out how to assemble/discover these.

         "txid": "hex",             (string, required) The transaction id
         "vout": n,                 (numeric, required) The output quantity
         "scriptPubKey": "hex",     (string, required) script key
         "redeemScript": "hex",     (string, non-obligatory) (required for P2SH) redeem script
         "witnessScript": "hex",    (string, non-obligatory) (required for P2WSH or P2SH-P2WSH) witness script
         "quantity": quantity,          (numeric or string, non-obligatory) (required for Segwit inputs) the quantity spent
  • What are the methodical steps beginning with an imported WIF/taproot utxo and ending with a signed tx?

LEAVE A REPLY

Please enter your comment!
Please enter your name here