From 1c04b98a373bf35fa001cc51b9cdd4ec55f1728f Mon Sep 17 00:00:00 2001 From: openoms Date: Thu, 26 Mar 2026 12:48:54 +0100 Subject: [PATCH 1/2] docs(examples): add blink-skills example page --- docs/examples/blink-skills.md | 46 +++++++++++++++++++++++++++++++++++ sidebars.js | 3 ++- 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 docs/examples/blink-skills.md diff --git a/docs/examples/blink-skills.md b/docs/examples/blink-skills.md new file mode 100644 index 0000000..b17e521 --- /dev/null +++ b/docs/examples/blink-skills.md @@ -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 + +Blink Skills repository preview + +## 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 <-> 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) diff --git a/sidebars.js b/sidebars.js index 1650cb1..a843c0d 100644 --- a/sidebars.js +++ b/sidebars.js @@ -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' ] }, ], From 321fb1d7caeba78e4c967623da7d130433a16887 Mon Sep 17 00:00:00 2001 From: openoms Date: Thu, 26 Mar 2026 13:00:58 +0100 Subject: [PATCH 2/2] docs(examples): fix mdx parsing in blink-skills page --- docs/examples/blink-skills.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples/blink-skills.md b/docs/examples/blink-skills.md index b17e521..685b1b5 100644 --- a/docs/examples/blink-skills.md +++ b/docs/examples/blink-skills.md @@ -34,7 +34,7 @@ node blink/scripts/price.js 1760 * 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 <-> USD conversions. +* Get swap quotes and execute BTC to USD conversions. * Interact with L402-gated services. ## Links