Key Files
config.json: permissions, public handlers, public KV keys, and payment tagswasm/:module.watormodule.wasmstatic/andtemplates/: UI and public pages
Permissions (Current)
ext.db.read_writeapi.POST:/api/v1/payments(policy: create-only,payments_out: false)ext.payments.watch
Payment Tags
This extension uses the tag paidtasks. Users must grant it in the permissions dialog.
Agent Guidance
Use lnbits/extensions/wasm/docs/agents_wasm_extensions.md for AI/agent instructions.
AI Prompt (Copy-Paste)
You are building a LNbits WASM extension. First read:
extensions/wasm/docs/agents_wasm_extensions.md
Rules:
- Only edit files under lnbits/extensions/<ext_id>/.
- Use extensions/paidtasks as a base template.
- Any internal endpoint access must be declared in config.json permissions.
- For POST /api/v1/payments you must set "out" explicitly and declare policy.payments_out.
- Use <lnbits server>/openapi.json as the API reference.
Goal: <describe extension behavior>.Test Checklist
- Enable extension and grant permissions +
paidtaskstag. - Create a list and tasks.
- Open the public page and create an invoice.
- Pay the invoice and verify:
- Task is marked paid.
- Public page updates via websocket.
API Reference
See the PaidTasks API documentation for endpoint details.
Related Pages
- PaidTasks API Reference: API endpoints for this extension
- All Extensions: Browse all LNbits extensions