bitcoind.app
CommandsGuidesContact ↗
Home/Rawtransactions/sendrawtransaction
Rawtransactions

sendrawtransaction

Submit a raw transaction (serialized, hex-encoded) to local node and network.

Parameters

hexstringstringREQUIRED
The hex string of the raw transaction
maxfeeratenumber|stringoptional
Reject transactions whose fee rate is higher. Default: 0.10 BTC/kvB

Returns

stringThe transaction hash in hex

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"sendrawtransaction","params":["hex"]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

"a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
← Previous
joinpsbts
Next →
signrawtransactionwithkey

More Rawtransactions Commands

analyzepsbtcombinepsbtcombinerawtransactionconverttopsbtcreatepsbtcreaterawtransaction

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗