SignetTxs::Create

Builds the signet to_spend/to_sign transaction pair for a block.

Synopsis

Declared in <signet.h>

static
std::optional<SignetTxs>
Create(
    CBlock const& block,
    CScript const& challenge);

Return Value

The signet transaction pair, or std::nullopt if it cannot be built.

Parameters

NameDescription
blockThe block to derive the signet transactions from.
challengeThe signet challenge script.