Xpersona
L

Labor Solana skill: Solana ecosystem

CLAWHUB · Unverified

Transfers native SOL on Solana to a recipient address using a funded signing key from environment configuration. Use when the user asks to send SOL, transfer...

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: medium.

clawhub skill install s171ck0bdbh6y3nbyka8aqy12s83t1w2:labor-solana-skill
  1. Install using `clawhub skill install s171ck0bdbh6y3nbyka8aqy12s83t1w2:labor-solana-skill` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/0xxbrain01/labor-solana-skill before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-0xxbrain01-labor-solana-skill/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

104,141 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: solana_native_transfer
description: >-
  Transfers native SOL on Solana to a recipient address using a funded signing
  key from environment configuration. Use when the user asks to send SOL, transfer
  lamports, pay someone in SOL, or move native tokens on Solana mainnet-beta,
  devnet, or a custom RPC.
metadata:
  openclaw:
    primaryEnv: SOLANA_PRIVATE_KEY
    requires:
      bins:
        - node
      env:
        - SOLANA_PRIVATE_KEY
---

# Solana native SOL transfer

## When to use

Apply this skill when the user wants to **send native SOL** (not SPL tokens) from
their wallet to another Solana address.

## Preconditions

1. **Node.js** is available on PATH (`node`).
2. User has set **`SOLANA_PRIVATE_KEY`** (see README — never commit or paste keys
   into chat). Optionally set **`SOLANA_RPC_URL`** (defaults to public devnet).
3. Dependencies installed once in this skill folder: `npm install` (or `npm ci`).
4. This skill uses TypeScript source compiled to JavaScript via `npm run build`
   and does not require Solana CLI (`solana`) or Python.

## Safety

- **Do not** echo, log, or copy the private key. Use env vars or OpenClaw secrets only.
- Prefer **devnet** for testing. For **mainnet-beta**, require explicit user
  confirmation and a `SOLANA_RPC_URL` pointing at mainnet (or user clearly opts in).
- Reject transfers to invalid addresses. Confirm recipient and amount with the user
  for non-trivial sums.

## How to run the transfer

From the directory that contains this `SKILL.md` (skill root), after `npm install`:

```bash
SOLANA_RPC_URL="${SOLANA_RPC_URL:-https://api.devnet.solana.com}" \
SOLANA_PRIVATE_KEY="<set-by-user-or-secrets>" \
npm run transfer -- --to "<RECIPIENT_PUBKEY>" --sol "<AMOUNT_SOL>"
```

- `--to` — base58 public key of the recipient.
- `--sol` — amount in SOL (decimal string or number, e.g. `0.01`).
- Optional: `--rpc <url>` overrides `SOLANA_RPC_URL`.

On success, report the **signature** (transaction id) and a **Solscan**
link (`explorerUrl` in CLI output) using the appropriate cluster (`devnet` vs `mainnet-beta`).

On failure, report the error message from the script without exposing secrets.

## Execution constraints (important)

- Use only this command path: `npm run transfer -- --to ... --sol ...`.
- Do not switch to `scripts/transfer_sol.py`, `.skill` bundles, or any Python flow.
- Do not require `solana` CLI for this skill; transfers are sent via `@solana/web3.js`.

## Mandatory user-facing workflow

Always show a visible step plan before execution and mark completed steps with a
green indicator.

Use this exact checklist style in chat:

- `🟩 Step 1 - Collect input` when done, otherwise `⬜ Step 1 - Collect input`
- `🟩 Step 2 - Validate input` when done, otherwise `⬜ Step 2 - Validate input`
- `🟩 Step 3 - User confirmation` when done, otherwise `⬜ Step 3 - User confirmation`
- `🟩 Step 4 - Execute transfer` when done, otherwise `⬜ Step 4 - Execute transfer`
- `🟩 Step 5 - Report result` when done, oth

README.md

# Solana skill pack (OpenClaw)

Skill bundle for [OpenClaw](https://docs.openclaw.ai/tools/creating-skills) focused on the **Solana** ecosystem. Today it implements **native SOL transfer**; the repo layout is meant to grow (more CLIs under `scripts/`, logic under `src/`).

Publish to [ClawHub](https://clawhub.ai/) after local testing. See [ClawHub docs — publish](https://docs.openclaw.ai/tools/clawhub).

## Layout (scalable)

| Path | Purpose |
|------|---------|
| `SKILL.md` | Skill metadata + agent instructions (OpenClaw) |
| `scripts/transfer-sol.ts` | Thin CLI entry compiled to `dist/` |
| `src/index.ts` | Public API barrel — import from here in tests or new commands |
| `src/config.ts` | RPC URL defaults / env resolution |
| `src/genesis-clusters.ts` | Genesis hash → cluster label (explorer) |
| `src/connection.ts` | `Connection` factory + `inferCluster` |
| `src/keypair.ts` | Parse `SOLANA_PRIVATE_KEY` (base58 / JSON bytes) |
| `src/amounts.ts` | SOL → lamports validation |
| `src/explorer.ts` | Solscan transaction URLs |
| `src/native-transfer.ts` | `SystemProgram.transfer` + send / confirm |
| `src/cli/transfer-sol.ts` | Transfer-specific argv handling + stdout JSON |

Add new features by introducing `src/<feature>.ts` and `scripts/<name>.ts` that call it, then extend `SKILL.md` when the agent should know about the feature.

## Setup (local / after install)

```bash
cd /path/to/labor-solana-skill
npm install
```

## Configuration

| Variable | Required | Description |
|----------|----------|-------------|
| `SOLANA_PRIVATE_KEY` | Yes | Base58 secret key **or** JSON byte array (same formats as common Solana tooling). Never commit this. |
| `SOLANA_RPC_URL` | No | Default: `https://api.devnet.solana.com`. Use a mainnet RPC URL only when intentionally sending mainnet SOL. |

Store secrets via OpenClaw/OpenClaw workspace secrets or your shell profile — not in the repo.

## CLI

```bash
SOLANA_RPC_URL="https://api.devnet.solana.com" \
SOLANA_PRIVATE_KEY="<your-key>" \
npm run transfer -- --to "<RECIPIENT>" --sol "0.01"
```

Optional: `--rpc <url>` overrides `SOLANA_RPC_URL`.

Successful runs print a JSON line with `signature`, `explorerUrl`, `from`, `to`, `lamports`, and `cluster`.

## Publish to ClawHub

Install the registry CLI ([docs](https://docs.openclaw.ai/tools/clawhub)):

```bash
npm i -g clawhub
clawhub login
```

From the parent directory of this skill (or inside it, adjusting path):

```bash
clawhub publish . \
  --slug solana-native-transfer \
  --name "Solana native SOL transfer" \
  --version 1.0.0 \
  --tags latest \
  --changelog "Initial release: native SOL transfer via RPC."
```

Adjust `--slug`, `--name`, and version to match your ClawHub listing. If the slug is taken, pick another (e.g. `yourhandle-solana-transfer`).

## Security

- Review `src/native-transfer.ts` and `scripts/transfer-sol.ts` before use; only transfer amounts you accept to lose on the chosen cluster.
- **Devnet first.** Mainnet transfers are irreversible.

_meta.json

{
  "ownerId": "kn7cpqv7dn1hg97qm12fj3920n83vzae",
  "slug": "labor-solana-skill",
  "version": "1.0.2",
  "publishedAt": 1774970087840
}

skill-card.md

## Description:

Transfers native SOL on Solana to a recipient address using a funded signing key from environment configuration.

This skill is ready for commercial/non-commercial use.

## Publisher:

[0xxbrain01](https://clawhub.ai/user/0xxbrain01)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and external users use this skill to prepare and execute native SOL transfers on Solana devnet, mainnet-beta, or a custom RPC endpoint after validating the recipient, amount, and network.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can make irreversible SOL transfers with a funded signing key.

Mitigation: Use a dedicated low-balance wallet, test on devnet first, and require explicit user confirmation before any mainnet transfer.

Risk: The confirmed network may not be bound to the RPC endpoint used at execution.

Mitigation: Fail closed unless the selected network matches the connected cluster, and independently verify the exact RPC endpoint and recipient before sending funds.

Risk: A private key exposed in chat or logs can compromise the wallet.

Mitigation: Keep SOLANA_PRIVATE_KEY in environment configuration or workspace secrets, and do not print, paste, or log it.

## Reference(s):

- [ClawHub skill listing](https://clawhub.ai/0xxbrain01/skills/labor-solana-skill)
- [OpenClaw skill documentation](https://docs.openclaw.ai/tools/creating-skills)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with shell commands and JSON transfer results]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Successful transfer runs report signature, explorer URL, source wallet, recipient, amount, cluster, and RPC URL.]

## Skill Version(s):

1.0.2 (source: server release metadata and package.json)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

package-lock.json

{
  "name": "Labor-Solana-Skill",
  "version": "1.0.0",
  "lockfileVersion": 3,
  "requires": true,
  "packages": {
    "": {
      "name": "Labor-Solana-Skill",
      "version": "1.0.0",
      "dependencies": {
        "@solana/web3.js": "^1.98.0",
        "bs58": "^6.0.0"
      },
      "devDependencies": {
        "@types/node": "^24.5.2",
        "typescript": "^5.9.2"
      },
      "engines": {
        "node": ">=18"
      }
    },
    "node_modules/@babel/runtime": {
      "version": "7.29.2",
      "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.2.tgz",
      "integrity": "sha512-JiDShH45zKHWyGe4ZNVRrCjBz8Nh9TMmZG1kh4QTK8hCBTWBi8Da+i7s1fJw7/lYpM4ccepSNfqzZ/QvABBi5g==",
      "license": "MIT",
      "engines": {
        "node": ">=6.9.0"
      }
    },
    "node_modules/@noble/curves": {
      "version": "1.9.7",
      "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.7.tgz",
      "integrity": "sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw==",
      "license": "MIT",
      "dependencies": {
        "@noble/hashes": "1.8.0"
      },
      "engines": {
        "node": "^14.21.3 || >=16"
      },
      "funding": {
        "url": "https://paulmillr.com/funding/"
      }
    },
    "node_modules/@noble/hashes": {
      "version": "1.8.0",
      "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",
      "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
      "license": "MIT",
      "engines": {
        "node": "^14.21.3 || >=16"
      },
      "funding": {
        "url": "https://paulmillr.com/funding/"
      }
    },
    "node_modules/@solana/buffer-layout": {
      "version": "4.0.1",
      "resolved": "https://registry.npmjs.org/@solana/buffer-layout/-/buffer-layout-4.0.1.tgz",
      "integrity": "sha512-E1ImOIAD1tBZFRdjeM4/pzTiTApC0AOBGwyAMS4fwIodCWArzJ3DWdoh8cKxeFM2fElkxBh2Aqts1BPC373rHA==",
      "license": "MIT",
      "dependencies": {
        "buffer": "~6.0.3"
      },
      "engines": {
        "node": ">=5.10"
      }
    },
    "node_modules/@solana/codecs-core": {
      "version": "2.3.0",
      "resolved": "https://registry.npmjs.org/@solana/codecs-core/-/codecs-core-2.3.0.tgz",
      "integrity": "sha512-oG+VZzN6YhBHIoSKgS5ESM9VIGzhWjEHEGNPSibiDTxFhsFWxNaz8LbMDPjBUE69r9wmdGLkrQ+wVPbnJcZPvw==",
      "license": "MIT",
      "dependencies": {
        "@solana/errors": "2.3.0"
      },
      "engines": {
        "node": ">=20.18.0"
      },
      "peerDependencies": {
        "typescript": ">=5.3.3"
      }
    },
    "node_modules/@solana/codecs-numbers": {
      "version": "2.3.0",
      "resolved": "https://registry.npmjs.org/@solana/codecs-numbers/-/codecs-numbers-2.3.0.tgz",
      "integrity": "sha512-jFvvwKJKffvG7Iz9dmN51OGB7JBcy2CJ6Xf3NqD/VP90xak66m/Lg48T01u5IQ/hc15mChVHiBm+HHuOFDUrQg==",
      "license": "MIT",
      "dependencies": {
        "@solana/cod

Sponsored

Ads related to Labor Solana skill: Solana ecosystem and adjacent AI workflows.