testproposedblock (0.21.0.0 RPC)

testproposedblock "blockhex" ( acceptnonstd )

Checks a block proposal for validity, and that it extends chaintip

Arguments:
1. blockhex        (string, required) The hex-encoded block from getnewblockhex
2. acceptnonstd    (boolean, optional) If set false, returns error if block contains non-standard transaction. Default is set via `-acceptnonstdtxn`. If PAK enforcement is set, block commitment mismatches with configuration PAK lists are rejected as well.

Examples:
> elements-cli testproposedblock <hex>