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
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Your question about Bitcoin or Lightning | |
| payment_hash | No | Payment hash if retrying after L402 payment |
Implementation Reference
- src/index.ts:93-104 (handler)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)); } );