Broadcast a transaction (raw or PSBT)
Changed onBroadcasts a raw transaction or a Partially Signed Bitcoin Transaction (PSBT) to the network for the specified cryptocurrency.
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
- info
api operation id
BroadcastTransactionwas added - info
the response property
became required for the status - info
the response property
became required for the status
- info
- breaking
removed the required property
from the response with the status - warning
removed the request property
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking