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

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

CC BY-SA 3.0
2016-07-16T05:01:51.477Z
2016-07-16T05:01:51.477Z
m1xolyd1an
<p>I have created a step by step tutorial from create wallet to broadcast a transaction in testnet with online tools : <a href="https://medium.com/@athamidn/estep-by-step-create-and-broadcast-a-bitcoin-transaction-on-testnet-588daacc2b7a?source=friends_link&amp;sk=2c9a310c02801d09c667608d4651e80f" rel="nofollow noreferrer">step-by-step-create-and-broadcast-a-bitcoin-transaction-on-testnet</a> </p>

CC BY-SA 4.0
2020-05-09T03:55:10.613Z
2020-05-09T03:55:10.613Z
Hamid Naghipour
<p><a href="https://bitcoin.org/en/developer-reference#createrawtransaction" rel="nofollow noreferrer">createrawtransaction</a> is a bitcoin-cli command that generates a raw transaction given one or more transaction ids and a list of <code>Outputs</code>, which are the destination amounts that will receive the funds.</p>
<p>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 <a href="https://bitcoin.org/en/developer-reference#signrawtransaction" rel="nofollow noreferrer"><code>signrawtransaction</code></a>.</p>
<p><strong>If the <code>createrawtransaction</code> process requires no secret keys, is there a way to generate a raw transaction online, using a web service?</strong></p>

CC BY-SA 3.0
2016-11-13T17:20:46.367Z
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
<websites><bitcoin-cli><createrawtransaction>
Is there a way to use a webservice for `createrawtransaction`?
Adam Matan
# Is there a way to use a webservice for `createrawtransaction`?

(Asked by: username_0 on 2016-07-16)

[createrawtransaction](https://bitcoin.org/en/developer-reference#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`](https://bitcoin.org/en/developer-reference#signrawtransaction).

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

**Tags:** websites, bitcoin-cli, createrawtransaction

> **Comments:**
> **username_1**: 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?  

---

## 2 answers

### Answer by username_2 on 2016-07-16. Score: 1 | Accepted answer

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.


---

### Answer by username_3 on 2020-05-09. Score: 1

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](https://medium.com/@athamidn/estep-by-step-create-and-broadcast-a-bitcoin-transaction-on-testnet-588daacc2b7a?source=friends_link&sk=2c9a310c02801d09c667608d4651e80f)


---

