AddAndGetMultisigDestination

Build a multisig destination and add its keys and script to the keystore.

Synopsis

Declared in <rpc/util.h>

CTxDestination
AddAndGetMultisigDestination(
    int required,
    std::vector<CPubKey> const& pubkeys,
    OutputType type,
    FlatSigningProvider& keystore,
    CScript& script_out);

Return Value

The multisig destination address.

Parameters

NameDescription
requiredNumber of required signatures.
pubkeysThe participating public keys.
typeThe output type to produce.
keystoreSigning provider that receives the generated keys and script.
script_outSet to the generated redeem/witness script.