I almost forgot. I dont want to download the whole blockchain for this, so its not an option. pruning is not an option either.. So is it possible to use bitcoins RPC to work on wallets without having bitcoin core node hosted locally? Is there any service out there that runs a node for users like myself who want to interact without downloading the whole thing, not even pruning?
If hard drive space is your concern I can help with that. I have a 2TB Seagate spinner that's just taking up space in my desk drawer. If you're in the US I can ship it to you, I'd rather see it get used than go to a landfill.
To get the master private key you can use the
dumpwallet command in the BitcoinQT's console. Like others have mentioned, using a third party is not advisable especially for your use case. You would be exposing your wallet to an anonymous server, compromising your security.
dumpwallet "filename"
Dumps all wallet keys in a human-readable format to a server-side file. This does not allow overwriting existing files.
Imported scripts are included in the dumpfile, but corresponding BIP173 addresses, etc. may not be added automatically by importwallet.
Note that if your wallet contains keys which are not derived from your HD seed (e.g. imported keys), these are not covered by
only backing up the seed itself, and must be backed up too (e.g. ensure you back up the whole dumpfile).
Note: This command is only compatible with legacy wallets.
Arguments:
1. filename (string, required) The filename with path (absolute path recommended)
Result:
{ (json object)
"filename" : "str" (string) The filename with full absolute path
}
Examples:
> bitcoin-cli dumpwallet "test"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "dumpwallet", "params": ["test"]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/
(code -1)
The only problem is I don't know if you can use it on wallets.
If the server is hosted by someone who's trustworthy they most definitely have wallet RPC commands disabled. If they don't, they're not trustworthy.