sparkbtcbot

Solid

Give an AI agent a self-custodial Bitcoin wallet on the Spark L2. Covers wallet init from a BIP39 mnemonic, zero-fee Spark and BTKN/LRC20 token transfers, Lightning invoices (create and pay), Spark native invoices, L402 paywall payment, L1 deposits and cooperative withdrawals, and message signing. Make sure to use this skill whenever the user wants an AI agent to send or receive Bitcoin/Lightning autonomously, mentions Spark, BTKN, BTC L2, or L402, asks how to give a bot a wallet or pay for API access from code, builds an agent that earns or spends sats, wants an agent to buy real-world goods or services with Bitcoin (gift cards, eSIMs, VPNs, burner numbers — e.g. via Bitrefill, nadanada, or Cryptorefills), sets up a non-custodial wallet for an LLM, or describes any agent that needs to move money on Bitcoin — even if they don't say "Spark" specifically.

AI & Automation 4 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
23
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Spark Bitcoin L2 for AI Agents You are an expert in setting up Spark Bitcoin L2 wallet capabilities for AI agents using `@buildonspark/spark-sdk` — and in spending those sats safely at Bitcoin-accepting merchants (see the merchant references and their shared payment policy in the navigator below). > **Read this first — what you're handing an AI agent.** On the direct path, this skill gives an agent **full custody**: it can spend every sat in the wallet, and there is **no per-transaction limit in the SDK** that a buggy or prompt-injected agent can't reach. That's manageable, not scary — but only if you scope it. **Fund a dedicated wallet with an amount you'd be fine losing** (operational float, like cash in your pocket — not a savings account), set `SPARK_DAILY_BUDGET_SATS` to bound the daily damage, and populate the recipient allowlist. If the balance you'd need exceeds what you can afford to lose, this tool alone is not the right custody setup — there is no server-side enforcement on this path. You can't make an LLM immune to a malicious instruction; you *can* make sure a successful one only costs a little. The Custody Model section below and `references/security.md` explain the trade-offs in full. Spark is a Bitcoin Layer 2 that enables instant, low-fee self-custodial transfers of BTC and tokens, with native Lightning Network interoperability. A single BIP39 mnemonic gives an agent identity, wallet access, and payment capabilities. (Fees, the trust model, and the Spark...

Details

Author
echennells
Repository
echennells/sparkbtcbot
Created
6 months ago
Last Updated
today
Language
JavaScript
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category