get_wallet_service_info
Retrieve capabilities, supported encryption methods, and notification types for a connected Bitcoin Lightning wallet to enable payment functionality within language models.
Instructions
Get NWC capabilities, supported encryption and notification types of the connected lightning wallet
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_wallet_service_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The handler function that retrieves wallet service information using the NWC client and formats it as JSON text content for the MCP response.
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)The registration function that defines and registers the get_wallet_service_info tool on the MCP server, including 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 register the tool.
registerGetWalletServiceInfoTool(server, client);