Is there a PHP script where it validates a bitcoin private key and also gets the public address from the key?
My goal was to:
- verify the private key
- Get the public address using that private key
- Check the balance using an external api
- Sweep if balance > 0
I know I can test it by sending some bitcoins to it, or use electrum to attempt the sweep, but let's say I have 100 private keys I need to verify, how would I go about that?