signblock ( RPC)

signblock "blockhex" "witnessScript"

Signs a block proposal, checking that it would be accepted first. Errors if it cannot sign the block. Note that this call adds the witnessScript to your wallet for signing purposes! This function is intended for QA and testing.

1. blockhex         (string, required) The hex-encoded block from getnewblockhex
2. witnessScript    (string, required) The hex-encoded witness script. Required for dynamic federation blocks. Argument is "" when the block is P2WPKH.

        pubkeys,   (hex) The signature's pubkey
        sig      (hex) The signature script

> elements-cli signblock 0000002018c6f2f913f9902aeab...5ca501f77be96de63f609010000000000000000015100000000