# Send Build apps with Bitcoin and Stablecoins on Arkade to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "bitcoin-arkade",
    "name": "Build apps with Bitcoin and Stablecoins on Arkade",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/tiero/bitcoin-arkade",
    "canonicalUrl": "https://clawhub.ai/tiero/bitcoin-arkade",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/bitcoin-arkade",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=bitcoin-arkade",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "bitcoin-arkade",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T04:18:34.292Z",
      "expiresAt": "2026-05-08T04:18:34.292Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=bitcoin-arkade",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=bitcoin-arkade",
        "contentDisposition": "attachment; filename=\"bitcoin-arkade-0.2.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "bitcoin-arkade"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/bitcoin-arkade"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/bitcoin-arkade",
    "downloadUrl": "https://openagent3.xyz/downloads/bitcoin-arkade",
    "agentUrl": "https://openagent3.xyz/skills/bitcoin-arkade/agent",
    "manifestUrl": "https://openagent3.xyz/skills/bitcoin-arkade/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/bitcoin-arkade/agent.md"
  }
}
```
## Documentation

### Arkade SDK Development Guide

Arkade is a programmable Bitcoin execution layer. It uses VTXOs (Virtual Transaction Outputs) to enable instant offchain Bitcoin transactions with near-zero fees, while users retain full self-custody and unilateral exit rights. No changes to Bitcoin are required.

### SDK Installation & Setup

npm install @arkade-os/sdk

Requires Node.js >= 22.

import { SingleKey, Wallet } from "@arkade-os/sdk";

// Create an identity (private key)
const identity = SingleKey.fromHex("your-private-key-hex");
// Or generate a new one:
// const identity = SingleKey.fromRandomBytes();

const wallet = await Wallet.create({
  identity,
  arkServerUrl: "https://arkade.computer",
});

const address = await wallet.getAddress();
console.log("Ark Address:", address);

For production, always use a secure key management solution rather than hardcoded keys.

### Addresses

// Offchain Ark address (ark1.../tark1...) — for instant payments
const arkAddress = await wallet.getAddress();

// Boarding address — for receiving onchain BTC to be onboarded later
const boardingAddress = await wallet.getBoardingAddress();

### Balances

const balance = await wallet.getBalance();

console.log("Available:", balance.available, "sats"); // spendable now
console.log("Total:", balance.total, "sats"); // includes recoverable
console.log("Settled:", balance.settled, "sats"); // Bitcoin-anchored
console.log("Preconfirmed:", balance.preconfirmed, "sats"); // cosigned

// Pending onchain deposits
console.log("Boarding:", balance.boarding.total, "sats");

### Sending Payments

// Send to an Ark address — instant, near-zero fees
const txid = await wallet.sendBitcoin({
  address: "ark1...",
  amount: 50000, // satoshis
});

For onchain destinations (bc1.../tb1...), use the Ramps offboard flow below. For Lightning invoices, use @arkade-os/boltz-swap.

### Receiving Payments

const address = await wallet.getAddress();
// Share this address with the sender

// Monitor for incoming funds
const stop = wallet.notifyIncomingFunds(async (notification) => {
  if (notification.type === "vtxo") {
    for (const vtxo of notification.vtxos) {
      console.log(\`Received ${vtxo.amount} sats\`);
    }
  }
});

// Call stop() when done listening

### VTXOs

const vtxos = await wallet.getVtxos();
for (const vtxo of vtxos) {
  console.log(vtxo.txid, vtxo.amount, vtxo.status);
}

### Onchain Ramps (Onboard / Offboard)

Convert between onchain Bitcoin UTXOs and offchain Arkade VTXOs. Best for large transfers; for everyday amounts, Lightning swaps have lower overhead.

import { Ramps } from "@arkade-os/sdk";

const ramps = new Ramps(wallet);

// Get fee info from the Ark server
const info = await wallet.arkProvider.getInfo();

// Onboard: convert boarding UTXOs to VTXOs
const commitmentTxid = await ramps.onboard(info.fees);

// Offboard: convert VTXOs to onchain BTC
const exitTxid = await ramps.offboard(
  "bc1q...", // destination onchain address
  info.fees,
  // amount, // optional — defaults to all available
);

### Lightning Network

npm install @arkade-os/boltz-swap

Lightning integration uses Boltz submarine swaps to bridge between Arkade and the Lightning Network.

import { ArkadeLightning, BoltzSwapProvider } from "@arkade-os/boltz-swap";

const swapProvider = new BoltzSwapProvider({
  apiUrl: "https://api.ark.boltz.exchange",
  network: "bitcoin",
});

const lightning = new ArkadeLightning({
  wallet,
  swapProvider,
});

// Receive via Lightning (reverse swap)
const { invoice, paymentHash } = await lightning.createLightningInvoice({
  amount: 25000,
});
console.log("Pay this:", invoice);

// Send via Lightning (submarine swap)
const result = await lightning.sendLightningPayment({
  invoice: "lnbc...",
});
console.log("Preimage:", result.preimage);

### Boltz API Endpoints

NetworkURLBitcoin mainnethttps://api.ark.boltz.exchangeMutinynethttps://api.boltz.mutinynet.arkade.shRegtest (local)http://localhost:9069

### Skill Classes (this package)

This package (@arkade-os/skill) provides higher-level wrapper classes over the SDK:

npm install @arkade-os/skill

import { Wallet, SingleKey } from "@arkade-os/sdk";
import {
  ArkadeBitcoinSkill,
  ArkaLightningSkill,
  LendaSwapSkill,
} from "@arkade-os/skill";

const wallet = await Wallet.create({
  identity: SingleKey.fromHex(privateKeyHex),
  arkServerUrl: "https://arkade.computer",
});

// Bitcoin: addresses, balances, send/receive, onboard/offboard
const bitcoin = new ArkadeBitcoinSkill(wallet);
const balance = await bitcoin.getBalance();
await bitcoin.send({ address: "ark1...", amount: 50000 });

// Lightning: invoices, payments via Boltz
const lightning = new ArkaLightningSkill({ wallet, network: "bitcoin" });
const inv = await lightning.createInvoice({ amount: 25000 });

// Stablecoin swaps: BTC <-> USDC/USDT
const lendaswap = new LendaSwapSkill({ wallet });
const quote = await lendaswap.getQuoteBtcToStablecoin(100000, "usdc_pol");

### ArkadeBitcoinSkill

getArkAddress() / getBoardingAddress() — get addresses
getBalance() — balance breakdown (offchain + onchain)
send({ address, amount }) — send sats offchain
getTransactionHistory() — transaction list
onboard(params) / offboard(params) — onchain ramps
waitForIncomingFunds(timeout?) — wait for incoming payment

### ArkaLightningSkill

createInvoice({ amount, description? }) — Lightning invoice (reverse swap)
payInvoice({ bolt11 }) — pay Lightning invoice (submarine swap)
getFees() / getLimits() — swap fees and limits
getPendingSwaps() / getSwapHistory() — swap tracking

### LendaSwapSkill

getQuoteBtcToStablecoin(amount, token) / getQuoteStablecoinToBtc(amount, token)
swapBtcToStablecoin(params) / swapStablecoinToBtc(params)
getSwapStatus(swapId) / getPendingSwaps() / getSwapHistory()
claimSwap(swapId) / refundSwap(swapId)
getAvailablePairs()

### Stablecoin Swaps (LendaSwap)

Non-custodial BTC/stablecoin atomic swaps via HTLCs.

Supported tokens: usdc_pol, usdc_eth, usdc_arb, usdt0_pol, usdt_eth, usdt_arb

Supported chains: polygon, ethereum, arbitrum

const lendaswap = new LendaSwapSkill({ wallet });

// Get quote
const quote = await lendaswap.getQuoteBtcToStablecoin(100000, "usdc_pol");
console.log("You'll receive:", quote.targetAmount, "USDC");

// Execute swap (BTC -> USDC)
const swap = await lendaswap.swapBtcToStablecoin({
  targetAddress: "0x...", // EVM address
  targetToken: "usdc_pol",
  targetChain: "polygon",
  sourceAmount: 100000,
});
console.log("Swap ID:", swap.swapId);

// Check status
const status = await lendaswap.getSwapStatus(swap.swapId);

// Claim completed swap
const claim = await lendaswap.claimSwap(swap.swapId);

### Smart Contracts

Arkade supports any valid Tapscript as VTXO locking conditions, enabling programmable offchain Bitcoin.

npm install @arkade-os/sdk @scure/base

import {
  RestArkProvider,
  RestIndexerProvider,
  SingleKey,
  VtxoScript,
  MultisigTapscript,
  CSVMultisigTapscript,
} from "@arkade-os/sdk";
import { hex } from "@scure/base";

const arkProvider = new RestArkProvider("https://mutinynet.arkade.sh");
const indexerProvider = new RestIndexerProvider("https://mutinynet.arkade.sh");
const info = await arkProvider.getInfo();
const serverPubkey = hex.decode(info.signerPubkey).slice(1);

Available contract primitives:

MultisigTapscript — N-of-N multisig
CLTVMultisigTapscript — Multisig with absolute timelocks
CSVMultisigTapscript — Multisig with relative timelocks
VtxoScript — Combine spending paths into Taproot trees

Contract patterns in docs: HTLC/Hashlock, Escrow (3-path), Spilman channels, Dryja-Poon channels, Lightning channels, chain swaps, Oracle DLC.

Use @scure/base for encoding, NOT bitcoinjs-lib.

See: https://docs.arkadeos.com/contracts/overview

### Networks & Resources

NetworkServer URLExplorerBitcoin mainnethttps://arkade.computerhttps://arkade.spaceMutinynet (testnet)https://mutinynet.arkade.shhttps://explorer.mutinynet.arkade.shSignethttps://signet.arkade.shhttps://explorer.signet.arkade.shRegtest (local)http://localhost:7070—

Local development:

nigiri start --ark

This starts a Bitcoin regtest node with an Arkade operator at http://localhost:7070.

### Key Concepts

VTXOs: Virtual Transaction Outputs — self-custodial offchain Bitcoin coins. States: preconfirmed, settled, recoverable, spent.
Batch Swaps: How VTXOs achieve Bitcoin finality — multiple transactions batched into a single onchain settlement.
Preconfirmation: Instant confirmation cosigned by the operator, before onchain settlement.
Virtual Mempool: DAG-based offchain execution engine that processes Arkade transactions.
Unilateral Exit: Users can always withdraw their funds onchain without operator cooperation.
Ark Addresses: ark1... (mainnet) / tark1... (testnet) — bech32m-encoded addresses containing server + user keys.

### Documentation

Full docs: https://docs.arkadeos.com
Technical primer: https://docs.arkadeos.com/primer
Wallet SDK v0.3: https://docs.arkadeos.com/wallets/v0.3/setup
Smart contracts: https://docs.arkadeos.com/contracts/overview
Lightning swaps: https://docs.arkadeos.com/contracts/lightning-swaps
LLM-friendly index: https://docs.arkadeos.com/llms.txt
GitHub: https://github.com/arkade-os/skill
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: tiero
- Version: 0.2.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T04:18:34.292Z
- Expires at: 2026-05-08T04:18:34.292Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/bitcoin-arkade)
- [Send to Agent page](https://openagent3.xyz/skills/bitcoin-arkade/agent)
- [JSON manifest](https://openagent3.xyz/skills/bitcoin-arkade/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/bitcoin-arkade/agent.md)
- [Download page](https://openagent3.xyz/downloads/bitcoin-arkade)