madeonsol_wallet_tracker_watchlist
List your tracked wallets with labels and display remaining watchlist capacity for BASIC, PRO, and ULTRA tiers.
Instructions
List your tracked wallets with labels and remaining watchlist capacity. BASIC=10, PRO=50, ULTRA=100.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:361-369 (registration)Tool registration via server.tool() call — defines the tool name 'madeonsol_wallet_tracker_watchlist', description, empty schema (no params), read-only annotations, and the handler that calls walletTrackerRequest with GET /wallet-tracker/watchlist.
server.tool( "madeonsol_wallet_tracker_watchlist", "List your tracked wallets with labels and remaining watchlist capacity. BASIC=10, PRO=50, ULTRA=100.", {}, { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true }, async () => ({ content: [{ type: "text" as const, text: await walletTrackerRequest("GET", "/wallet-tracker/watchlist") }], }) ); - src/index.ts:366-369 (handler)Handler function — async arrow that makes a GET request to /wallet-tracker/watchlist via the walletTrackerRequest helper, returning the watchlist data as text content.
async () => ({ content: [{ type: "text" as const, text: await walletTrackerRequest("GET", "/wallet-tracker/watchlist") }], }) ); - src/index.ts:362-364 (schema)Schema — empty object literal for no input parameters (the watchlist tool takes no arguments).
"madeonsol_wallet_tracker_watchlist", "List your tracked wallets with labels and remaining watchlist capacity. BASIC=10, PRO=50, ULTRA=100.", {}, - src/index.ts:346-358 (helper)Helper function walletTrackerRequest — a generic REST request helper scoped to wallet tracker tools. Makes authenticated fetch requests to the MadeOnSol API /api/v1 endpoints with method, path, and optional body.
async function walletTrackerRequest(method: string, path: string, body?: unknown): Promise<string> { const headers: Record<string, string> = { "Content-Type": "application/json", ...apiKeyHeaders() }; const res = await fetch(`${BASE_URL}/api/v1${path}`, { method, headers, ...(body ? { body: JSON.stringify(body) } : {}), }); if (!res.ok) { const text = await res.text().catch(() => ""); return `Error ${res.status}: ${text}`; } return JSON.stringify(await res.json(), null, 2); }