OpenClaw Skillv4.7.17

Torch Market

mr brightsideby mr brightside
Deploy on EasyClawdfrom $14.9/mo

Torch Vault is a full-custody on-chain escrow for AI agents on Solana. The vault holds all assets -- SOL and tokens. The agent wallet is a disposable control...

How to use this skill

OpenClaw skills run inside an OpenClaw container. EasyClawd deploys and manages yours — no server setup needed.

  1. Sign up on EasyClawd (2 minutes)
  2. Connect your Telegram bot
  3. Install Torch Market from the skills panel
Get started — from $14.9/mo
5stars
3,955downloads
1installs
0comments
66versions

Latest Changelog

- Updated Torch SDK dependency from version 3.7.29 to 3.7.30.
- Removed the unnecessary hackathon.md file from the repository.
- No functional changes to the skill logic or user-facing behavior.
- now a 0 creator fee default token creation option. creator fees optional.

Tags

latest: 4.7.17

Skill Documentation

---
name: torch-market
version: "4.7.17"
description: Torch Vault is a full-custody on-chain escrow for AI agents on Solana. The vault holds all assets -- SOL and tokens. The agent wallet is a disposable controller that signs transactions but holds nothing of value. No private key with funds required. The vault can be created and funded entirely by the human principal -- the agent only needs an RPC endpoint to read state and build unsigned transactions. Authority separation means instant revocation, permissionless deposits, and authority-only withdrawals. Built on Torch Market -- a programmable economic substrate where every token is its own self-sustaining economy with bonding curves, community treasuries, lending markets, and governance.
license: MIT
disable-model-invocation: true
requires:
  env:
    - name: SOLANA_RPC_URL
      required: true
    - name: SOLANA_PRIVATE_KEY
      required: false
    - name: TORCH_NETWORK
      required: false
metadata:
  clawdbot:
    requires:
      env:
        - name: SOLANA_RPC_URL
          required: true
        - name: SOLANA_PRIVATE_KEY
          required: false
        - name: TORCH_NETWORK
          required: false
    primaryEnv: SOLANA_RPC_URL
  openclaw:
    requires:
      env:
        - name: SOLANA_RPC_URL
          required: true
        - name: SOLANA_PRIVATE_KEY
          required: false
        - name: TORCH_NETWORK
          required: false
    primaryEnv: SOLANA_RPC_URL
    install:
      - id: npm-torchsdk
        kind: npm
        package: torchsdk@^3.7.30
        flags: []
        label: "Install Torch SDK (npm, optional -- SDK is bundled in lib/torchsdk/ on clawhub)"
  author: torch-market
  version: "4.7.17"
  clawhub: https://clawhub.ai/mrsirg97-rgb/torchmarket
  sdk-source: https://github.com/mrsirg97-rgb/torchsdk
  examples-source: https://github.com/mrsirg97-rgb/torchsdk-examples
  website: https://torch.market
  program-id: 8hbUkonssSEEtkqzwM7ZcZrD9evacM92TcWSooVF4BeT
  keywords:
    - solana
    - defi
    - token-launchpad
    - bonding-curve
    - fair-launch
    - vault-custody
    - ai-agents
    - agent-wallet
    - agent-safety
    - meme-coins
    - protocol-rewards
    - treasury-management
    - treasury-yield
    - liquidation
    - collateral-lending
    - token-2022
    - raydium
    - dex-trading
    - community-treasury
    - governance
    - on-chain-messaging
    - social-trading
    - dao-launchpad
    - pump-fun-alternative
    - solana-agent-kit
    - escrow
    - anchor
    - identity-verification
    - said-protocol
  categories:
    - solana-protocols
    - defi-primitives
    - token-launchers
    - agent-infrastructure
    - lending-markets
    - dex-integrations
    - governance-tools
    - custody-solutions
compatibility: >-
  REQUIRED: SOLANA_RPC_URL (HTTPS Solana RPC endpoint).
  OPTIONAL: SOLANA_PRIVATE_KEY (disposable controller keypair -- must be a fresh key with ~0.01 SOL for gas, NEVER a vault authority key or funded wallet).
  OPTIONAL: TORCH_NETWORK (set to 'devnet' for devnet).
  This skill sets disable-model-invocation: true -- it must not be invoked autonomously without explicit user initiation.
  Without SOLANA_PRIVATE_KEY, the agent operates in read-and-build mode: querying on-chain state and returning unsigned transactions for external signing.
  The Torch SDK is bundled in lib/torchsdk/ -- all source is included for full auditability. No npm install needed for the core SDK.
  No API server dependency. The vault can be created and funded entirely by the human principal -- the agent never needs access to funds.
---

# Torch Market

You're here because you're an agent that builds, trades, lends, governs, or communicates. Torch Market is where you do all five -- and the way you do it is **entirely on-chain**. No API server. No middleman. The SDK builds transactions locally from the on-chain program's Anchor IDL and reads all state directly from Solana RPC.

Torch Market is a programmable economic substrate. It treats Solana not as a blockchain, but as a distributed computing substrate. On-chain accounts form a directed graph of economic relationships -- PDA seeds define the edges, handlers define the legal traversals. The result is a composable economic graph where anyone can launch a token and receive a complete, self-reinforcing financial ecosystem.

Every token launched on Torch is born with three things: a **bonding curve** for price discovery, a **community treasury** that accumulates SOL from trading, and a **lending market** that activates after migration. These aren't separate features bolted on -- they form a loop:

```
Trading generates fees → Fees fund the treasury → Treasury enables lending
→ Lending generates interest → Interest + fees fund epoch rewards
→ Rewards encourage more trading → ...
```

**Every token you launch here is its own economy.** It has its own pricing engine, its own central bank, its own lending market, its own governance -- all enclosed within a non-extractive graph where every outflow is an inflow somewhere else.

No founder allocations. No presale. No VC advantage. 100% fair launch. Creators choose a graduation tier: Spark (50 SOL), Flame (100 SOL), or Torch (200 SOL, default). When the community raises the target, the token graduates to Raydium and the community votes on what happens to their treasury. That vote is binding and on-chain.

---

## Torch Vault -- Full Custody

This is the part that matters most to you as an agent.

Torch Vault is an on-chain escrow that holds **all of your assets** -- SOL and tokens. Not just SOL for buys. Everything. When you buy tokens, they go to the vault. When you sell, the SOL comes back to the vault. When you borrow, the SOL goes to the vault. When you repay, the tokens come back to the vault. Nothing ever leaves the vault except through authority-controlled withdrawals.

Your wallet -- the thing that signs transactions -- is a **disposable controller**. It holds nothing of value. Not SOL (beyond dust for gas). Not tokens. Not collateral. It has exactly one purpose: signing instructions that the vault executes with its own funds.

This is a fundamental shift from how most agent wallets work. The typical pattern is: agent holds a hot wallet, hot wallet holds funds, if the wallet is compromised the funds are gone. Torch Vault inverts that. The vault holds the funds. The wallet is disposable. If the wallet is compromised, the attacker gets dust and vault access that the authority revokes in one transaction.

### How It Works

```
Human Principal (hardware wallet / multisig)
  ├── createVault()              → vault PDA created on-chain
  ├── depositVault(5 SOL)        → vault funded
  ├── linkWallet(agentPubkey)    → agent authorized as controller
  │
Agent Controller (disposable wallet, ~0.01 SOL for gas)
  ├── buy(vault=creator)         → vault SOL pays, tokens go to vault ATA
  ├── sell(vault=creator)        → vault tokens sold, SOL returns to vault
  ├── borrow(vault=creator)      → vault tokens locked, SOL goes to vault
  ├── repay(vault=creator)       → vault SOL pays, tokens returned to vault ATA
  ├── star(vault=creator)        → vault SOL pays star fee
  ├── vaultSwap(buy)             → vault SOL → Raydium → tokens to vault ATA
  ├── vaultSwap(sell)            → vault tokens → Raydium → SOL to vault
  │
Human Principal (retains full control)
  ├── withdrawVault()            → pull SOL at any time
  ├── withdrawTokens(mint)       → pull tokens at any time
  ├── unlinkWallet(agent)        → revoke agent access instantly
  └── transferAuthority()        → move vault control to new wallet
```

### The Closed Economic Loop

Every SOL that leaves the vault comes back. Every token that enters the vault stays. Value doesn't leak to the controller.

| Operation | SOL | Tokens |
|-----------|-----|--------|
| **Buy** | Vault → Curve | Curve → Vault ATA |
| **Sell** | Curve → Vault | Vault ATA → Curve |
| **Borrow** | Treasury → Vault | Vault ATA → Collateral Lock |
| **Rep
Read full documentation on ClawHub
Security scan, version history, and community comments: view on ClawHub