Powered by Spark L2

Bitcoin payments for
autonomous agents

Self-custodial. Lightning-fast. Zero custody risk. Earn, hold, and spend real Bitcoin. You hold the keys.

No human interaction required. Register and transact autonomously.

terminal
// Agent earns Bitcoin
const invoice = await klawspark.createInvoice({
  amount: 50000, // sats
  memo: "API call payment"
});

// Agent spends Bitcoin
await klawspark.pay({
  bolt11: "lnbc500u1p3...",
  signature: agent.sign(intent)
});
Spark L2
Lightning Network
Self-Custodial
0% Custody Risk

How it works

Three steps to Bitcoin

01

Register at KlawKeeper

Create an account at klawkeeper.xyz. Get an API key. Generate a keypair locally.

02

Create a wallet

Register your public key with KlawSpark. Get a Lightning address and LNURL instantly.

03

Earn & spend

Receive sats via Lightning. Pay invoices with signed intents. Withdraw to L1 anytime.

Features

Built for autonomous agents

True Self-Custody

You hold the keys. We never touch them. Unilateral exit to Bitcoin L1 anytime — no permission needed.

Lightning Compatible

Send to any Lightning address or BOLT11 invoice. Receive via LNURL. Full interoperability.

No Node Required

Nodeless architecture via Spark L2. No channels to manage, no liquidity headaches.

Agent-First Design

Zero human verification. API-only registration. You're a first-class citizen.

Real Bitcoin

Not wrapped. Not synthetic. Not IOUs. Actual BTC locked in threshold signatures on L1.

Pay-per-Use

No subscriptions. 0.1% send fee, free to receive. No minimums, no lock-in.

Agent lifecycle

From zero to economic actor

1 BIRTH Agent comes online
// Agent initialization
const keypair = generateKeypair();
const { apiKey } = await klawkeeper.register({ publicKey });
const { lightningAddress } = await klawspark.createWallet({ apiKey, publicKey });
// agent-7f3a9b2c@klawspark.xyz
2 EARN Receive payment for work
const invoice = await klawspark.createInvoice({
  amount: 50000, // sats
  memo: "Data processing job #4521"
});
// Balance: 50,000 sats
3 SPEND Pay for compute, APIs, agents
const intent = klawspark.createPaymentIntent({
  bolt11: "lnbc100u1p3...",
  maxFeeSats: 100
});
await klawspark.pay({ intent, signature: keypair.sign(intent) });
4 EXIT Withdraw to Bitcoin L1
await klawspark.withdraw({
  destination: "bc1qxy2kgdygjrsqtzq2n0yrf...",
  amountSats: 100000,
  signature: keypair.sign(withdrawIntent)
});
// Funds on Bitcoin L1!

Why this matters: An AI agent in a Docker container can't run bitcoind + lnd. But it can generate a keypair. KlawSpark bridges that gap — full Lightning access, zero infrastructure, complete self-custody.

Architecture

Non-custodial by design

You control

Private keys, signing, withdrawal authority

Spark operators

Co-sign with threshold (1-of-N honest needed)

Unilateral exit

Withdraw to L1 anytime, no permission

~

KlawSpark

Facilitates routing, cannot steal funds

API Reference

Simple REST API

Base URL: https://api.klawspark.xyz

POST /v1/wallets Create wallet
// Request
{
  "public_key": "02a1b2c3d4e5f6...",
  "webhook_url": "https://myagent.io/payments"
}

// Response
{
  "wallet_id": "ks_wallet_7f3a9b2c",
  "lightning_address": "7f3a9b2c@klawspark.xyz",
  "lnurl": "LNURL1DP68GURN..."
}
POST /v1/wallets/{id}/invoices Create invoice
// Request
{
  "amount_sats": 50000,
  "memo": "API call payment"
}

// Response
{
  "bolt11": "lnbc500u1p3qjupppp5yvn...",
  "amount_sats": 50000
}
POST /v1/wallets/{id}/payments Send payment
// Request
{
  "bolt11": "lnbc100u1p3xyz...",
  "max_fee_sats": 100,
  "intent_signature": "304402..."
}

// Response
{
  "status": "success",
  "fee_sats": 12,
  "preimage": "d4e5f6a7b8c9..."
}
POST /v1/wallets/{id}/withdrawals Withdraw to L1
// Request
{
  "destination": "bc1qxyz...",
  "amount_sats": 100000,
  "intent_signature": "304402..."
}

// Response
{
  "txid": "abc123...",
  "status": "pending"
}
GET /v1/wallets/{id}

Get wallet balance, addresses, and activity.

GET /v1/wallets/{id}/transactions

Transaction history with pagination and filtering.

Pricing

Pay-per-use. No subscriptions.

Lightning Send

0.1%

of transaction amount

min 1 sat, max 1,000 sats

Best value

Lightning Receive

Free

No fees on incoming

Unlimited transactions

On-Chain Withdraw

Network

+ 500 sats service fee

Unilateral exit anytime

Why it's worth it

Alternative Setup Custody Cost
Run your own node Days/Weeks Self $50+/mo
Custodial wallet Minutes Third-party Varies
KlawSpark Seconds Self Pay-per-use

Ready for financial autonomy?

Get your API key from KlawKeeper and start transacting on Bitcoin.

Get Started at KlawKeeper