createrawtransaction is a bitcoin-cli command that generates a raw transaction given one or more transaction ids and a list of Outputs, which are the destination amounts that will receive the funds.

AFAIK, the raw transaction is only based on the blockchain, and does not require any private key or address; the signing process is done separately, using signrawtransaction.

If the createrawtransaction process requires no secret keys, is there a way to generate a raw transaction online, using a web service?

  • createrawtransaction is not based on anything. It just converts the arguments you are passing to a hex transaction. It does not need a network connection, or the blockchain, or your wallet. There is even a standalone tool shipped with bitcoind (bitcoin-tx) that can do the same. Why do you need a webservice for it? Commented Nov 13, 2016 at 17:20

2 Answers 2


That's correct, a private key is not required to use createrawtransaction. The private key is only required during the signing process of signrawtransaction just as you stated in your question.

If you are looking for a web service that will allow you to create a raw transaction online, I suggest you check out http://coinb.in it does exactly this, as well as broadcast the transaction, and allow you to save a local copy to sign the transaction offline.


I have created a step by step tutorial from create wallet to broadcast a transaction in testnet with online tools : step-by-step-create-and-broadcast-a-bitcoin-transaction-on-testnet

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.