Search content
Sort by

Showing 3 of 3 results by minton980
Post
Topic
Board Electrum
Re: How to generate child private key by php, please quote
by
minton980
on 15/03/2025, 12:07:48 UTC
Using the console is generally slow and it is not meant to be called in a loop, which is what I assume you want to do (derive 50000+ keys and addresses) based on your other topic; therefore it will only complicate a simple thing you want to do.
Yes, console is slow, therefor I want to do this in php to make the progress automatically.
Let's say I have 50,000 child addresses and how to sweep the balance(if any) to the first child address for spending it later?
Post
Topic
Board Electrum
Topic OP
I want generate child private key by php, please quote
by
minton980
on 14/03/2025, 05:34:04 UTC
Hi
With Electrum console.
we can run this command to get a child private key
You are connected to an ElectrumX 1.16.0 server.
>>> getprivatekeyforpath('m/0/1')
"p2wpkh:Ky4XXXXXXXXXXXXXXXXXXXXXXXX"
>>>
Can this be done in php?
Input are electrum seed(12 words) or master private key:zrpivAZ*********** and the derive path, 'm/0/1' in above example.
I can pay you for this in bitcoin, please quote.
Thanks for you time.
Post
Topic
Board Electrum
Topic OP
how to access missing balances at higher indexes
by
minton980
on 05/03/2025, 10:03:07 UTC

Electrum creates 20 addresses by default. I created an address at high index(about 50,000) by script and sent some bitcoin to the address.

The amount of bitcoin doesn't present in my account balance because electrum only searches for balance for the first 20 addresses(index 0-19).

I tried to change the gap_limit to 50000 to make electrum searching for more, but electrum got frozen for hours and unresponsive.

So how can I access the missing bitcoin? Than you in advance.