Skip to main content

sendrawtransaction RPC Method

Submits a raw transaction (serialized, hex-encoded) to a node.

Updated on
Oct 4, 2023

sendrawtransaction RPC Method

Parameters

hexstring
string
REQUIRED
The transaction hex string
maxfeerate
numeric/string
default=0.10. It rejects transactions with a fee rate higher than the specified value. It can be set to 0 to accept any fee rate

Returns

hex
The transaction hash in hexadecimal format
Request
1
curl https://docs-demo.btc.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method": "sendrawtransaction", "params": ["hexstring"]}'
5
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free