Broadcast a transaction (raw or PSBT)
Broadcasts a raw transaction or a Partially Signed Bitcoin Transaction (PSBT) to the network for the specified cryptocurrency.
Path parameters
The cryptocurrency code to track (e.g., 'BTC' for Bitcoin, 'LTC' for Litecoin).
Query parameters
If true, tests whether the transaction would be accepted into the mempool without broadcasting it.
Request body
Example request
{
"hex": "0200000001..."
}Response
Transaction processed successfully.
Example response
{
"rpcCode": -25,
"rpcCodeMessage": "General error during transaction submission",
"rpcMessage": "bad-txns-inputs-missingorspent"
}Changes
Changed in 4 of the 40 revisions of this API.418
- ▲
removed the required property
transactionIdfrom the response with the200statusresponse-required-property-removed
- ●
removed the request property
psbtrequest-property-removed
- ○
added the optional property
rpcCodeto the response with the200statusresponse-optional-property-added
- ○
added the optional property
rpcCodeMessageto the response with the200statusresponse-optional-property-added
- ○
added the optional property
rpcMessageto the response with the200statusresponse-optional-property-added
- ○
added the optional property
successto the response with the200statusresponse-optional-property-added
- ▲
- ▲
the
coderesponse's property type/format changed frominteger/tostring/for status400response-property-type-changed
- ▲
removed the required property
errorfrom the response with the400statusresponse-required-property-removed
- ○
added the optional property
httpCodeto the response with the400statusresponse-optional-property-added
- ○
added the optional property
messageto the response with the400statusresponse-optional-property-added
- ○
added the optional property
reasonto the response with the400statusresponse-optional-property-added
- ▲
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 14 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲