Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions docs/examples/blink-skills.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
id: blink-skills
title: Blink Skills
slug: /examples/blink-skills
---

Use Blink Skills to run Lightning wallet operations from agent workflows and scripts.

This repository provides a skill manifest plus self-contained Node.js scripts for common wallet actions like checking balances, creating invoices, paying, pricing, and swaps.

## Screenshot

<img src="https://opengraph.githubassets.com/1/blinkbitcoin/blink-skills" alt="Blink Skills repository preview" width="900"/>

## Quick Start

```bash
export BLINK_API_KEY="blink_..."

# Optional: use staging/signet for testing
export BLINK_API_URL="https://api.staging.blink.sv/graphql"

# Balance (includes USD estimate)
node blink/scripts/balance.js

# Create BTC invoice
node blink/scripts/create_invoice.js 1000 "Payment"

# Convert sats to USD
node blink/scripts/price.js 1760
```

## Typical Use Cases
* Check wallet balances and account status from scripts.
* Create and monitor BTC or USD invoices.
* Send Lightning payments from BTC or USD wallet.
* Get swap quotes and execute BTC to USD conversions.
* Interact with L402-gated services.

## Links
### Source Code
* [github.com/blinkbitcoin/blink-skills](https://github.com/blinkbitcoin/blink-skills)

### More Reading
* [github.com/blinkbitcoin/blink-skills/blob/main/README.md](https://github.com/blinkbitcoin/blink-skills/blob/main/README.md)
* [github.com/blinkbitcoin/blink-skills/blob/main/blink/SKILL.md](https://github.com/blinkbitcoin/blink-skills/blob/main/blink/SKILL.md)
3 changes: 2 additions & 1 deletion sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ const sidebars = {
'examples/btcpayserver-plugin',
'examples/alby-connector',
'examples/lnbits-funding-source',
'examples/donation-button'
'examples/donation-button',
'examples/blink-skills'
]
},
],
Expand Down
Loading