ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified finance Safety 2/5

sparkbtcbot

Set up Spark Bitcoin L2 wallet capabilities for AI agents. Initialize wallets from mnemonic, transfer sats and tokens, create/pay Lightning invoices, pay L402 paywalls, manage deposits and withdrawals. Use when user mentions "Spark wallet," "Spark Bitcoin," "BTKN tokens," "Spark L2," "Spark SDK," "Spark payment," "Spark transfer," "Spark invoice," "L402," "Lightning paywall," or wants Bitcoin L2 capabilities for an agent.

Why use this skill?

Enable your AI agents to perform instant Bitcoin transactions, manage Spark L2 wallets, and settle L402 paywalls with the Spark SDK.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/echennells/sparkbtcbot
Or

What This Skill Does

The sparkbtcbot skill provides a robust bridge between AI agents and the Spark Bitcoin Layer 2 network. By leveraging the @buildonspark/spark-sdk, this tool enables agents to manage their own self-custodial wallets, facilitating instant, near zero-fee transfers of BTC and tokens. It empowers agents to handle Lightning Network interoperability, allowing them to pay L402 paywalls, generate and settle invoices, and execute high-speed transactions natively. This skill transforms an agent from a text-based processor into an autonomous economic participant, capable of interacting with the global Bitcoin ecosystem without human intervention.

Installation

To integrate this capability into your OpenClaw environment, execute the following command in your terminal: clawhub install openclaw/skills/skills/echennells/sparkbtcbot Ensure you have your environment variables configured if you are using a proxy service, or have your BIP39 mnemonic secured if you are using the agent-direct mode. For production, please refer to the sparkbtcbot-proxy documentation to ensure your private keys remain protected behind server-side access controls.

Use Cases

  • Autonomous Micro-payments: Enabling agents to purchase API credits or data packets via L402 paywalls without human approval.
  • Automated Value Settlement: Facilitating instant, zero-fee settlements between different AI agents or services built on Spark.
  • On-Chain/Lightning Bridge: Providing a unified interface for agents to move funds between the Spark L2 network and the wider Lightning Network for real-world utility payments.
  • Token Economy Interaction: Managing BTKN tokens and other assets on the Spark chain for specialized agent-based market operations.

Example Prompts

  • "Spark wallet, check my current balance and list the last five transactions."
  • "Create a Lightning invoice for 5000 sats so I can receive payment for the report I just finished."
  • "Pay the L402 paywall at this endpoint using my Spark wallet to access the requested data."

Tips & Limitations

This skill gives the agent full custodial control over the mnemonic provided. For testing purposes, always utilize the REGTEST environment to avoid the loss of real funds. When moving to a production environment, prioritize the sparkbtcbot-proxy approach to implement spending limits, daily caps, and read-only role restrictions. Always audit your agent's code to ensure that transaction logic is strictly bounded, preventing the accidental depletion of your wallet balance through erroneous or malicious API calls.

Metadata

Stars2287
Views0
Updated2026-03-09
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-echennells-sparkbtcbot": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#bitcoin#lightning#l2#crypto#payments
Safety Score: 2/5

Flags: external-api, network-access, code-execution