Skip to main content
Glama

get_transaction

Retrieve detailed information about a specific cryptocurrency transaction using its ID. This tool provides transaction details including amounts, with optional currency conversion and wallet context for multi-wallet sessions.

Instructions

Get details of a specific transaction by ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
transaction_idYesTransaction ID to retrieve
display_currencyNoDisplay currency for amount conversion (e.g. KRW, EUR). Defaults to server setting.
wallet_idNoTarget wallet ID. Required for multi-wallet sessions; auto-resolved when session has a single wallet.

Implementation Reference

  • The handler function 'registerGetTransaction' defines the 'get_transaction' tool, sets up its input schema, and implements the logic by calling the API client to fetch transaction details.
    export function registerGetTransaction(server: McpServer, apiClient: ApiClient, walletContext?: WalletContext): void {
      server.tool(
        'get_transaction',
        withWalletPrefix('Get details of a specific transaction by ID.', walletContext?.walletName),
        {
          transaction_id: z.string().describe('Transaction ID to retrieve'),
          display_currency: z.string().optional().describe('Display currency for amount conversion (e.g. KRW, EUR). Defaults to server setting.'),
          wallet_id: z.string().optional().describe('Target wallet ID. Required for multi-wallet sessions; auto-resolved when session has a single wallet.'),
        },
        async (args) => {
          const params = new URLSearchParams();
          if (args.display_currency) params.set('display_currency', args.display_currency);
          if (args.wallet_id) params.set('walletId', args.wallet_id);
          const qs = params.toString();
          const result = await apiClient.get(`/v1/transactions/${args.transaction_id}${qs ? '?' + qs : ''}`);
          return toToolResult(result);
        },
      );
    }

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/minhoyoo-iotrust/WAIaaS'

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