I have my Bitcoin WIF on a mobile application, and I want to use a Bitcoin-cli node running externally on a server to broadcast my transaction request from my mobile device. I cannot use SendToAddress because that CLI command can only be run on a node when the Bitcoins are on that node.

What Bitcoin-cli command do I use, to send coins from my mobile application's wallet, to another address?

1 Answer 1


The 'wallet import format' (WIF) is a standardized way of encoding a private key so that other wallets can recognize it. You could use it to import the private key to your node's wallet, and then sign and send the transaction from there, but I think thats different than what you want to do: keep the private keys on the mobile, but broadcast signed transactions from your node.

The bitcoin-cli command you'll want is sendrawtransaction, but in order to make this work you'll need to get a signed raw transaction hex to use as input. So you'll need a mobile wallet that can provide you with the signed raw transaction, and do so without broadcasting it to the network.

Use bitcoin-cli help sendrawtransaction for more detail on the command.

As another option, you could use a mobile wallet which allows you to manually connect to the desired node. This would accomplish a similar result.

  • Great, you are right that I want to keep the private keys on the mobile, so this sounds like what I want. Thanks Jul 16, 2018 at 6:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.