get_wallet_service_info
Retrieve details about NWC capabilities, supported encryption, and notification types of the connected Lightning wallet to integrate payment functionalities with LLMs.
Instructions
Get NWC capabilities, supported encryption and notification types of the connected lightning wallet
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The handler function that fetches wallet service info from the NWC client and returns it as a formatted JSON text content block.async () => { const info = await client.getWalletServiceInfo(); return { content: [ { type: "text", text: JSON.stringify(info, null, 2), }, ], }; }
- src/tools/get_wallet_service_info.ts:4-23 (registration)Function that registers the 'get_wallet_service_info' tool on the MCP server, including the name, description, and handler.export function registerGetWalletServiceInfoTool( server: McpServer, client: nwc.NWCClient ) { server.tool( "get_wallet_service_info", "Get NWC capabilities, supported encryption and notification types of the connected lightning wallet", async () => { const info = await client.getWalletServiceInfo(); return { content: [ { type: "text", text: JSON.stringify(info, null, 2), }, ], }; } ); }
- src/mcp_server.ts:19-19 (registration)Invocation of the registration function during MCP server creation to enable the tool.registerGetWalletServiceInfoTool(server, client);