Skip to main content
Glama

get_mempool_entry

Retrieve detailed information about an unconfirmed Bitcoin transaction using its transaction hash to monitor pending network activity.

Instructions

Get details of a specific unconfirmed transaction in the mempool.

Args: txid: Transaction hash (64 hex characters)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
txidYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The `get_mempool_entry` tool handler, which uses the RPC client to fetch details of a specific unconfirmed transaction from the mempool.
    def get_mempool_entry(txid: str) -> str:
        """Get details of a specific unconfirmed transaction in the mempool.
    
        Args:
            txid: Transaction hash (64 hex characters)
        """
        entry = get_rpc().getmempoolentry(txid)
        return json.dumps(entry)

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