---
name: createrawtransaction
btcversion: 0.16.0
btcgroup: rawtransactions
permalink: en/doc/0.16.0/rpc/rawtransactions/createrawtransaction/
---

createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,"data":"hex",...} ( locktime ) ( replaceable )

Create a transaction spending the given inputs and creating new outputs.
Outputs can be addresses or data.
Returns hex-encoded raw transaction.
Note that the transaction's inputs are not signed, and
it is not stored in the wallet or transmitted to 