ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

utxo_wallet

Full UTXO Exchange agent skill — wallet connect, deposit, explore trending tokens, token launch, swap (buy/sell). Everything an AI agent needs.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/davidyashar/utxo-wallet
Or

UTXO Exchange Agent Skill

Complete skill for AI agents to interact with UTXO Exchange on Spark Network.

Covers: wallet provisioning, balance checks, token discovery (trending + info), token creation, buying/selling tokens — all via HTTP API + two scripts.

Files in This Skill

FilePurpose
scripts/wallet-connect.jsProvision new wallet OR reconnect existing one
scripts/api-call.jsMake HTTP API calls (avoids Windows PowerShell curl issues)

All scripts are pre-compiled JavaScript. They use Node.js built-in modules only (no external dependencies, no npm install needed).

API Helper Usage

All API calls use api-call.js to avoid shell escaping issues. Write JSON to a temp file, then call:

exec node skills/utxo_wallet/scripts/api-call.js <METHOD> <PATH> [--body-file <file>] [--auth]

Flags:

  • --body-file <path> — read JSON body from a file
  • --auth — auto-read .session.json and send Authorization: Bearer header

To send a POST with JSON body:

  1. Write JSON to a temp file (e.g., body.json)
  2. Run: exec node skills/utxo_wallet/scripts/api-call.js POST /api/agent/token/launch --body-file body.json --auth

Quick Reference — API Endpoints

MethodEndpointAuthPurpose
GET/api/agent/wallet/balanceNoCheck sats balance + token holdings
GET/api/agent/trendingNoDiscover trending tokens (new pairs, migrating, migrated) with optional sort
GET/api/agent/token/info?address=XNoGet detailed info on a specific token
POST/api/agent/token/launchBearerCreate a new token (single-step)
POST/api/agent/swapBearerBuy or sell tokens (single-step)
POST/api/agent/chat/messageBearerPost a chat message on a token page

Base URL: http://localhost:3000 (or UTXO_API_BASE_URL env var)

Production setup: For mainnet, set UTXO_API_BASE_URL=https://utxo.fun in your environment before running any commands. Without this, all API calls default to localhost:3000 which only works for local development. You can also pass --base-url https://utxo.fun to each script invocation.

Network: The API defaults to mainnet. All addresses use the spark1 prefix (not sparkrt1). Token addresses use the btkn1 prefix. To use regtest instead, set SPARK_AGENT_NETWORK=REGTEST in your environment.


Step 1: Connect Wallet

Before any operation, the agent needs an active session.

Decision Tree

1. Does .wallet.json exist?
   ├─ NO  → Run wallet-connect.js --provision (creates a NEW wallet + connects)
   ├─ YES → Does .session.json exist?
              ├─ NO  → Run wallet-connect.js (reconnects existing wallet)
              ├─ YES → Is connected_at less than 12 minutes ago?
                         ├─ YES → Session active, proceed
                         ├─ NO  → Run wallet-connect.js to refresh

Metadata

Stars2387
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-davidyashar-utxo-wallet": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.