Skip to main content
Glama
buildwithgrove

Grove's MCP Server for Pocket Network

get_transaction_receipt

Retrieve blockchain transaction receipts to verify status, check gas usage, and analyze event logs across multiple networks using Grove's Pocket Network server.

Instructions

Get transaction receipt with status, gas used, and logs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
blockchainYesBlockchain name
networkNoNetwork type (defaults to mainnet)
txHashYesTransaction hash

Implementation Reference

  • MCP tool handler that parses input arguments, calls the advanced blockchain service, and returns formatted JSON response.
    case 'get_transaction_receipt': { const blockchain = args?.blockchain as string; const txHash = args?.txHash as string; const network = (args?.network as 'mainnet' | 'testnet') || 'mainnet'; const result = await advancedBlockchain.getTransactionReceipt(blockchain, txHash, network); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], isError: !result.success, }; }
  • Core helper method that resolves the blockchain RPC service and executes the 'eth_getTransactionReceipt' RPC call.
    async getTransactionReceipt( blockchain: string, txHash: string, network: 'mainnet' | 'testnet' = 'mainnet' ): Promise<EndpointResponse> { const service = this.blockchainService.getServiceByBlockchain(blockchain, network); if (!service) { return { success: false, error: `Blockchain service not found: ${blockchain} (${network})`, }; } return this.blockchainService.callRPCMethod( service.id, 'eth_getTransactionReceipt', [txHash] ); }
  • Tool registration definition including name, description, and input schema.
    { name: 'get_transaction_receipt', description: 'Get transaction receipt with status, gas used, and logs', inputSchema: { type: 'object', properties: { blockchain: { type: 'string', description: 'Blockchain name', }, txHash: { type: 'string', description: 'Transaction hash', }, network: { type: 'string', enum: ['mainnet', 'testnet'], description: 'Network type (defaults to mainnet)', }, }, required: ['blockchain', 'txHash'], }, },
  • Input schema defining parameters for the get_transaction_receipt tool.
    inputSchema: { type: 'object', properties: { blockchain: { type: 'string', description: 'Blockchain name', }, txHash: { type: 'string', description: 'Transaction hash', }, network: { type: 'string', enum: ['mainnet', 'testnet'], description: 'Network type (defaults to mainnet)', }, }, required: ['blockchain', 'txHash'], },

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/buildwithgrove/mcp-pocket'

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