Skip to main content

sendrawtransaction

POST

Submits a signed raw transaction to the local node and the network, and returns the transaction id.

🚧 A submitted transaction cannot be cancelled!

Verifying mempool acceptance with testmempoolaccept before submitting is recommended.

param[0]
hexstringstringrequired
The hex string of the signed raw transaction.
param[1]
maxfeeratestringrequired
Reject transactions whose fee rate is higher than this value, expressed in BTC/kvB.Fee rates larger than 1 BTC/kvB are rejected. Set to 0 to accept any fee rate.
param[2]
maxburnamountstringrequired
The maximum burn amount to allow, denominated in BTC.Transactions whose provably unspendable outputs, such as OP_RETURN outputs, exceed this value are rejected.This check is based on heuristics and does not guarantee spendability of the outputs.
Responses
codestringrequired
Code identifying the cause of the failed request.
messagestringrequired
Detailed message including the name and value of the invalid parameter.
{
"code": "ERROR_CODE",
"message": "Unauthorized"
}
cURL
curl -X POST 'https://bitcoin-mainnet.nodit.io' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: nodit-demo' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "sendrawtransaction",
"params": [
"02000000013ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a00000000da00483045",
"0.10",
"0.00"
]
}'