Hello everyone i have quick question.
I want to use electrum has backend to handle payment on a website.
My plan (but no sure if everything is possible), i want to create a multi-sig wallet, then export master public key and use it on the server as watch-only wallet.
I need on new adresse for every invoice, so I will use the cmd : electrum addrequest --force, but how can i get all the new generate adresse back in the cold wallet ?
If you know a better conception for this stuff let me know.
Thank you
You can use the same command in your cold storage wallet as new addresses are generated from your xpub which is generated from your xprv (extended private key, granting access to all coins/addresses and private keys).
Use this command:
wallet.storage.put('gap_limit',size)
E.G
wallet.storage.put('gap_limit',100) will generate 100 addresses that are determined using the Hierarchical Deterministic method (from your seed/xpub/xprv whichever the wallet has access to).