Actions9
Broadcast Transaction
AI-generatedOverview
This node broadcasts a raw Bitcoin or Liquid network transaction to the selected blockchain network using the Blockstream API. It is useful for users who want to propagate their signed transactions to the network for confirmation and inclusion in the blockchain. For example, after creating and signing a Bitcoin transaction offline, a user can use this node to send the raw transaction hex to the Bitcoin mainnet or testnet for processing.
Use Case Examples
- Broadcast a signed Bitcoin transaction hex to the Bitcoin mainnet to transfer funds.
- Send a raw Liquid network transaction to the Liquid testnet for testing purposes.
Properties
| Name | Meaning |
|---|---|
| Network | Selects the blockchain network to broadcast the transaction on (Bitcoin mainnet, Bitcoin testnet, Liquid, or Liquid testnet). |
| Raw Transaction (Hex) | The raw transaction data in hexadecimal format to be broadcasted to the network. |
Output
JSON
txid- The transaction ID of the broadcasted transaction returned by the Blockstream API.
Dependencies
- Blockstream API - no authentication required, uses public endpoints
Troubleshooting
- Ensure the raw transaction hex is correctly formatted and valid; otherwise, the API will reject it.
- Network selection must match the transaction type; broadcasting a mainnet transaction on testnet or vice versa will fail.
- Common error messages include invalid transaction format or network mismatch, which require verifying the raw transaction data and network parameter.
Links
- Blockstream API Documentation - Official API documentation for interacting with Bitcoin and Liquid blockchain data via Blockstream's Esplora API.