sendrawtransaction - Bitcoin
sendrawtransaction. Broadcasts a raw, hex-encoded transaction to the network for inclusion in the blockchain.
sendrawtransaction - bitcoin [Value: 100CU]
Submits a raw transaction to the network for processing.
Use cases
- Broadcast a raw transaction
- Submit signed transaction
- Send constructed transactions
Constraints
- Valid raw transaction required
- Transaction must be signed
- Invalid or malleable transactions may fail
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl https://bitcoin.drpc.org \
-X POST \
-H "Content-Type: application/json" \
--data '{ "method": "sendrawtransaction", "params": ["hexstring"] }'
Response
200
{
"jsonrpc": "2.0",
"id": "curltest",
"result": "f7a1b3c9e4e3f16383f7be9f33f8e37963b5f8a263b4fb0b24f8a8199055c23f"
}
Request params
idinteger
jsonrpcstring
methodstring
object
hexstringstring
Required. The transaction hex string.
maxfeeratenumeric
Optional. Default is 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.
Response
200
Response params
object
idinteger
jsonrpcstring
resultnumeric
object
hexstring
The transaction hash in hexadecimal format.