Skip to main content
Glama

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
NameRequiredDescriptionDefault
conf_targetYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • 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."
        )
    
    
    # ============================================================

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Bortlesboat/bitcoin-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server