2

createrawtransaction is a bitcoin-cli command that generates a raw transaction given one ore 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? – Pieter Wuille Nov 13 '16 at 17:20
1

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.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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