Skip to main content
Glama
tywenk

Model Context Protocol Server for Solana Client

by tywenk

get_signature_statuses

Check the status of multiple Solana transaction signatures using this tool. Input a list of signatures to receive their confirmation statuses, ensuring efficient blockchain transaction tracking.

Instructions

Returns the statuses of a list of signatures.

Args: signatures (list[str]): List of transaction signatures to confirm

Returns: str: Signature statuses in the format "Signature statuses: {statuses}"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
signaturesYes

Implementation Reference

  • The handler function for the 'get_signature_statuses' tool. It is decorated with @mcp.tool(), which handles both registration and schema inference from type hints and docstring. Converts string signatures to Signature objects, fetches statuses from Solana RPC, and formats the response.
    @mcp.tool() async def get_signature_statuses(signatures: list[str]) -> str: """Returns the statuses of a list of signatures. Args: signatures (list[str]): List of transaction signatures to confirm Returns: str: Signature statuses in the format "Signature statuses: {statuses}" """ async with AsyncClient(rpc_url) as client: sigs = [Signature.from_string(sig) for sig in signatures] statuses = await client.get_signature_statuses(sigs) return f"Signature statuses: {statuses}"
  • src/server.py:258-258 (registration)
    The @mcp.tool() decorator registers the get_signature_statuses function as an MCP tool.
    @mcp.tool()

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/tywenk/mcp-sol'

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