Skip to main content
Glama

GOAT MCP Server

chunk-IM2A3YN7.mjs2.37 kB
import { GetTransactionHistoryParameters } from "./chunk-RO6R22WC.mjs"; import { __name } from "./chunk-PAWJFY3S.mjs"; // src/txnhelper.service.ts import { Tool } from "@goat-sdk/core"; import { SolanaWalletClient } from "@goat-sdk/wallet-solana"; function _ts_decorate(decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; } __name(_ts_decorate, "_ts_decorate"); function _ts_metadata(k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); } __name(_ts_metadata, "_ts_metadata"); var TransactionHelperService = class { static { __name(this, "TransactionHelperService"); } options; api; constructor(api, options) { this.options = options; this.api = api; } async getTransactionHistory(walletClient, params) { try { const connection = walletClient.getConnection(); const options = { limit: params.limit, before: params.before, until: params.until, types: params.types, minContextSlot: params.minContextSlot }; return this.api.getTransactionHistory(connection, params.address, options); } catch (error) { console.error("Error in getTransactionHistory service:", error); throw error; } } }; _ts_decorate([ Tool({ name: "txnhelper_get_transaction_history", description: "Get transaction history for a Solana wallet address or token account using Helius API" }), _ts_metadata("design:type", Function), _ts_metadata("design:paramtypes", [ typeof SolanaWalletClient === "undefined" ? Object : SolanaWalletClient, typeof GetTransactionHistoryParameters === "undefined" ? Object : GetTransactionHistoryParameters ]), _ts_metadata("design:returntype", Promise) ], TransactionHelperService.prototype, "getTransactionHistory", null); export { TransactionHelperService }; //# sourceMappingURL=chunk-IM2A3YN7.mjs.map

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/cryptoleek-team/goat-mcp'

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