Skip to main content
Glama

get_transaction

Retrieve detailed blockchain transaction information by providing a transaction hash to access data like sender, receiver, amount, and status.

Instructions

Get transaction details by hash

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hashYesThe transaction hash

Implementation Reference

  • index.ts:874-887 (registration)
    Registration of the 'get_transaction' tool, including its name, description, and input schema definition.
    {
      name: "get_transaction",
      description: "Get transaction details by hash",
      inputSchema: {
        type: "object",
        properties: {
          hash: {
            type: "string",
            description: "The transaction hash",
          },
        },
        required: ["hash"],
      },
    },
  • TypeScript type definition for the input parameters of the get_transaction tool.
    type GetTransactionParams = { hash: string };
  • Validator function to check if arguments match GetTransactionParams for the get_transaction tool.
    const isValidGetTransactionParams = (
      args: any
    ): args is GetTransactionParams => {
      return (
        typeof args === "object" && args !== null && typeof args.hash === "string"
      );
    };

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/itsanishjain/alchemy-sdk-mcp'

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