broadcast_transaction
Send signed Bitcoin transactions to the network or test them with a dry run option. Use this tool to broadcast transactions or verify them before submission.
Instructions
Send signed transaction to the network.
Args:
tx_hex: Signed transaction as hex string
dry_run: If True, only test without broadcasting (default: True)
max_fee_rate: Maximum fee rate in BTC/kB (optional)
Returns:
Dictionary with result. For dry_run, includes 'allowed' status.
For actual broadcast, includes 'txid'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tx_hex": "<tx_hex>"
},
"name": "broadcast_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx_hex | Yes | ||
| dry_run | No | ||
| max_fee_rate | No |