Skip to main content
Glama

ask_bitcoin

Get answers to Bitcoin and Lightning Network questions using AI-powered insights with Lightning Network micro-payments.

Instructions

Ask a question about Bitcoin, Lightning Network, or cryptocurrency. Powered by Llama 3.3 70B. Costs 21 sats via Lightning L402.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesYour question about Bitcoin or Lightning
payment_hashNoPayment hash if retrying after L402 payment

Implementation Reference

  • Registration and handler implementation for the "ask_bitcoin" tool.
    server.tool(
      "ask_bitcoin",
      "Ask a question about Bitcoin, Lightning Network, or cryptocurrency. Powered by Llama 3.3 70B. Costs 21 sats via Lightning L402.",
      {
        prompt: z.string().describe("Your question about Bitcoin or Lightning"),
        payment_hash: z.string().optional().describe("Payment hash if retrying after L402 payment"),
      },
      async ({ prompt, payment_hash }) => {
        const data = await l402Post(MAXIMUMSATS_API, "/api/dvm", { prompt }, payment_hash);
        return textResult(data.result || formatL402(data));
      }
    );

Latest Blog Posts

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/joelklabo/maximumsats-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server