Skip to main content
Glama

GOAT MCP Server

txnhelper.plugin.ts1.04 kB
import { type Chain, PluginBase } from "@goat-sdk/core"; import { TransactionHelperApi } from "./api"; import { TransactionHelperService } from "./txnhelper.service"; import { SolanaWalletClient } from "@goat-sdk/wallet-solana"; export interface TransactionHelperOptions { apiKey?: string; } export class TransactionHelperPlugin extends PluginBase<SolanaWalletClient> { /** * Initializes the TransactionHelperPlugin by invoking the PluginBase constructor * with the identifier "txnhelper" and an instance of TransactionHelperService * using the provided parameters and a new TransactionHelperApi instance. */ constructor(params?: TransactionHelperOptions) { super("txnhelper", [new TransactionHelperService(new TransactionHelperApi(), params)]); } supportsChain(chain: Chain): boolean { return chain.type === "solana"; } } /** * Factory function to create a new Transaction Helper plugin instance */ export function txnhelper() { return new TransactionHelperPlugin(); }

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