estimate_smart_fee
Calculate Bitcoin transaction fees for a specific confirmation time to optimize cost and speed.
Instructions
Get fee estimate for a specific confirmation target.
Args: conf_target: Number of blocks for confirmation (1-1008)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| conf_target | Yes |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/bitcoin_mcp/server.py:1444-1457 (handler)The 'estimate_smart_fee' handler function which interfaces with the Bitcoin RPC to fetch fee estimates and formats the response for the MCP client.
@mcp.prompt() def track_transaction(txid: str) -> str: """Track a transaction from mempool to confirmation.""" return ( f"Track Bitcoin transaction {txid}. First, try get_mempool_entry to check if " f"it's unconfirmed. If in mempool, report its fee rate, position estimate, and " f"ancestors (get_mempool_ancestors). Then use analyze_transaction for full details. " f"If confirmed, report the block it's in and confirmations. Assess whether the " f"fee rate was appropriate and estimate when it will confirm if still pending." ) # ============================================================