createrawtransaction
POST
/{apiKey}
Creates 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 the network.
Path Parameters
stringrequireddefaults to
docs-demoFor higher throughput, create your own API key
Request
object[]required
An array of transaction inputs.
object[] or objectrequired
An array or object with outputs (key-value pairs, where keys are addresses or 'data', and values are BTC amounts or hex).
integeroptionaldefaults to
0Raw locktime. Non-0 value also activates inputs.
booleanoptionaldefaults to
falseWhether to mark transaction as BIP125 replaceable. Allows this transaction to be replaced by a transaction with higher fees.
Responses
200
Hex-encoded raw transaction.
A serialized, hex-encoded Bitcoin transaction.
Was this page helpful?