Close Menu
  • Home
  • Bitcoin
    • Bitcoin Atm Machines
    • Bitcoin Books
      • Bitcoin Jobs
        • Bitcoin Price Prediction
        • Bitcoin Coin
  • Bitcoin Farm
  • Bitcoin Gifts
    • Bitcoin Gift Card
    • Bitcoin Mining
    • Bitcoin Wallets
  • Technology
  • Shop
    • Bitcoin Atm Machine
    • Bitcoin Coins
    • Bitcoin Coins, Wallets,Shirts,Books,Gifts
    • Bitcoin Mining Machine
    • Bitcoin Mining Machine Full Set Up
    • Computers and Accessories
    • USB Flash Drives
    • Mini Bitcoin Mining Machine
What's Hot

The Mars Pathfinder Rovers: Sojourner and Marie Curie

June 1, 2025

Is Your Model Invisible to AI? The New Guidelines for B2B Advertising and marketing

June 1, 2025

Highlights from the Bitcoin 2025 Convention in Las Vegas

June 1, 2025
Facebook X (Twitter) Instagram
  • Bitcoin
  • Bitcoin Books
  • Bitcoin Coin
  • Bitcoin Farm
  • Bitcoin Gift Card
Facebook X (Twitter) Instagram
farm-bitcoin.com
  • Home
  • Bitcoin
    • Bitcoin Atm Machines
    • Bitcoin Books
      • Bitcoin Jobs
        • Bitcoin Price Prediction
        • Bitcoin Coin
  • Bitcoin Farm
  • Bitcoin Gifts
    • Bitcoin Gift Card
    • Bitcoin Mining
    • Bitcoin Wallets
  • Technology
  • Shop
    • Bitcoin Atm Machine
    • Bitcoin Coins
    • Bitcoin Coins, Wallets,Shirts,Books,Gifts
    • Bitcoin Mining Machine
    • Bitcoin Mining Machine Full Set Up
    • Computers and Accessories
    • USB Flash Drives
    • Mini Bitcoin Mining Machine
farm-bitcoin.com
Home » bitcoin core – How can I import a multisig address to my wallet?
bitcoin core – How can I import a multisig address to my wallet?
Bitcoin

bitcoin core – How can I import a multisig address to my wallet?

adminBy adminMarch 18, 2025No Comments1 Min Read
Share
Facebook Twitter LinkedIn Pinterest Email


I’m stuck on this problem since yesterday and I don’t get how to fix it. How do I import a multisig address to my bitcoin-cli wallet?

I am currently doing this:

public function generateMultisigWallet($serverPubkey, $initiatorPubkey, $partnerPubkey) {
    $multisig = $this->request('createmultisig', [2, [$serverPubkey, $initiatorPubkey, $partnerPubkey], 'p2sh-segwit']);
    $multisig = json_decode($multisig)->result;

    if(!isset($multisig->address)) {
        return [false, '', ''];
    }

    $this->importMultisig($serverPubkey, $initiatorPubkey, $partnerPubkey);

    return [true, $multisig->address, $multisig->redeemScript];
}

public function importMultisig($key1, $key2, $key3) {
    $descriptor="sh(multi(2,".$key1.','.$key2.','.$key3.'))';
    
    $descriptorInfo = $this->request('getdescriptorinfo', [$descriptor]);
    $descriptorWithChecksum = json_decode($descriptorInfo)->result->descriptor;

    $importData = [
        [
            'desc' => $descriptorWithChecksum,
            'timestamp' => 'now',
            "label" => "my_multisig_wallet"
        ]
    ];

    $result = $this->request('importdescriptors', [$importData]);

    var_dump("RESULT IS :");
    var_dump($result);
    return $result;
}

The problem is, I cannot get around the Error Message “Cannot import descriptor without private keys to a wallet with private keys enabled” for it, if I do not import the address I cannot get unspent UXTOs nor walletnotify works – does anybody have a solution for this? Would be extremely thankful if somebody could provide assistance.



Source link

Post Views: 37
Address Bitcoin core import multisig Wallet
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
admin
  • Website

Related Posts

Highlights from the Bitcoin 2025 Convention in Las Vegas

June 1, 2025

SOPH token drops 24.97% after $900M airdrop, regardless of sturdy TVL progress

June 1, 2025

The transaction historical past made to the handle through the Electrum Testnet pockets will not be displayed

May 31, 2025

Marsses.com Evaluate: 0.48% to 0.85% Every day For 303 to 386 days

May 31, 2025
Add A Comment
Leave A Reply Cancel Reply

Subscribe to Updates

Get the latest creative news from farm-bitcoin about crypto, bitcoin, business and technology.

Please enable JavaScript in your browser to complete this form.
Loading
About

At Farm Bitcoin, we are passionate about unlocking the potential of cryptocurrency and blockchain technology. Our mission is to make the world of digital currencies accessible and understandable for everyone, from beginners to seasoned investors. We believe that cryptocurrency represents the future of finance, and we are here to guide you through this exciting landscape.

Get Informed

Subscribe to Updates

Get the latest creative news from farm-bitcoin about crypto, bitcoin, business and technology.

Please enable JavaScript in your browser to complete this form.
Loading
Top Insights

The Mars Pathfinder Rovers: Sojourner and Marie Curie

June 1, 2025

Is Your Model Invisible to AI? The New Guidelines for B2B Advertising and marketing

June 1, 2025
Facebook X (Twitter) Instagram Pinterest
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Terms and Conditions
Copyright 2024 Farm Bitcoin Design By Prince Ayaan.

Type above and press Enter to search. Press Esc to cancel.

Go to mobile version