AgentSkillsCN

alby-bitcoin-payments-agent-skill

通过 Nostr Wallet Connect (NIP-47)、LNURL 和 WebLN,为您的应用添加比特币闪电钱包功能。支持发送和接收支付、处理支付通知、查询钱包余额与交易列表、进行比特币与法币的兑换、查询闪电地址、有条件地结算支付(HOLD 发票)、解析 BOLT-11 发票以及验证支付预像。

SKILL.md
--- frontmatter
name: alby-bitcoin-payments-agent-skill
description: Add bitcoin lightning wallet capabilities to your app using Nostr Wallet Connect (NIP-47), LNURL, and WebLN. Send and receive payments, handle payment notifications, fetch wallet balance and transaction list, do bitcoin to fiat currency conversions, query lightning addresses, conditionally settle payments (HOLD invoices), parse BOLT-11 invoices, verify payment preimages.
license: Apache-2.0
metadata:
  author: getAlby
  version: "1.2.0"

Alby Bitcoin Payments Agent Skill

When to use this skill

Use this skill to understand how to build apps that require bitcoin lightning wallet capabilities.

Prefer Typescript

When the user says to use "JS" or "Javascript" or "NodeJS" or something similar, use typescript unless the user explicitly says to not use typescript or the project does not support it.

Imports

Do NOT import from the dist directory.

Read the Typings

Based on what functionality you require, read the relevant typings:

Testing Wallets

If the user doesn't have a wallet yet, or needs one for development or testing, testing wallets can be created with a single request.

Automated Testing

Testing wallets should be used for automated testing.

It is recommended to write tests so that the agent can test its own work and fix bugs itself without requiring human input.

Production Wallet

If they do not have a wallet yet here are some options