Is there a way to send testnet coins to someone without needing to run my own full testnet node, but still using bitcoin-cli? I'm looking for any public RPC nodes that I can use to broadcast transactions or send coins. I tried a few URLs from Electrum's list and 1ml.com, but no luck there. So, is there a way to do this? I want a command-line method to use from my shell. I've got an address with some coins and the private key ready. Appreciate any help.
If you don't specify any argument, it'll open the GUI by default. But if you run electrum-4.5.4-portable.exe --help on cmd, it should show basic information about using CLI version.
Hi I have tried --help. That was the first thing I did. It does not display anything. I have clean installed it on a *nix box - not portable version and I got it working using CLI. I still feel bitcoin-cli is a faster option. Wish there was a way to use electrum's RPC testnet URL with bitcon-cli. Thanks
In Windows, it'll work in the installer version using the "debug" executable which is inside the install directory.
If you want to use it like the pre-compiled Portable executable, add -P or --portable arg when starting the daemon and when issuing commands.
So basically, as long as you have a tool that can create and sign a testnet raw transaction from scratch, and some service that will push the transaction for you, then you are covered. For the first, zpywallet will work just fine as long as you have the outpoints i.e. inputs (make sure you use the master branch).
As for testnet broadcasting, you can use the mempool.space link above, or you can use Electrum, or use a public bitcoin node with RPC enabled like this one.
I had already done that. I used bitcoin-cli, but will try zypwallet as per your recommendation.
Yes I am aware and was looking for an option for that since I have already the raw transaction.
So mempool.space is what I tried after I tried quicknode.com but they ( quicknode.com ) are so shameless - they wanted my credit card number and wanted to conduct KYC for using testnet!
I will try this https://www.coinsdo.com/en/free-rpc-nodes
Publicly usable RPC nodes are rare! I think there should be an option to disallow / filter / locking up certain commands like looking up the private key - then maybe people might let others use their endpoints.