exergynet_verify_program
Verify if program LNES-01 is live on Mainnet by providing an RPC URL.
Instructions
Check if LNES-01 is live on Mainnet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rpcUrl | No |
Implementation Reference
- src/index.ts:20-20 (registration)Registration of the 'exergynet_verify_program' tool in the ListToolsRequestSchema handler, defining its name, description, and input schema (optional rpcUrl string).
{ name: "exergynet_verify_program", description: "Check if LNES-01 is live on Mainnet.", inputSchema: { type: "object", properties: { rpcUrl: { type: "string" } }, additionalProperties: false } }, - src/index.ts:20-20 (schema)Input schema for exergynet_verify_program: accepts an optional 'rpcUrl' string property. No additional properties allowed.
{ name: "exergynet_verify_program", description: "Check if LNES-01 is live on Mainnet.", inputSchema: { type: "object", properties: { rpcUrl: { type: "string" } }, additionalProperties: false } }, - src/index.ts:42-47 (handler)Handler implementation: takes an optional rpcUrl (defaults to Solana mainnet), creates a Solana connection, fetches the account info for the ExergyNet program ID (Fe8KhdiFWhKcPWH2N2Svqc3VSpK9EzN8nMh9pQ3cPCeD), and returns JSON with 'exists' (boolean) and 'executable' (nullable boolean).
case "exergynet_verify_program": { const rpcUrl = (args.rpcUrl as string) || DEFAULT_RPC; const connection = new Connection(rpcUrl, "confirmed"); const info = await connection.getAccountInfo(new PublicKey(EXERGYNET_PROGRAM_ID)); return { content:[{ type: "text", text: JSON.stringify({ exists: info !== null, executable: info?.executable }) }] }; }