Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Trade tokens on Solana using the ClawDex CLI. Use when the user asks to swap tokens, check balances, get quotes, or manage a Solana trading wallet.
Trade tokens on Solana using the ClawDex CLI. Use when the user asks to swap tokens, check balances, get quotes, or manage a Solana trading wallet.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
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.
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.
Trade any Solana token through Jupiter aggregator with simulation, safety guardrails, and full JSON output.
Before using this skill, ensure ClawDex is installed and configured: which clawdex || npm install -g clawdex@latest If not configured yet, run onboarding: clawdex status --json If status fails, set up with: clawdex onboarding \ --jupiter-api-key "$JUPITER_API_KEY" \ --rpc "${SOLANA_RPC_URL:-https://api.mainnet-beta.solana.com}" \ --wallet ~/.config/solana/id.json \ --json
clawdex balances --json Returns an array of { token, symbol, mint, balance, decimals } objects. Zero-balance accounts are included in JSON output.
clawdex quote --in SOL --out USDC --amount 0.01 --json Lightweight price check โ no simulation, no wallet needed.
clawdex swap --in SOL --out USDC --amount 0.01 --simulate-only --json Runs full simulation on-chain without broadcasting. Does not require --yes. Use this to preview the output amount and route before committing.
clawdex swap --in SOL --out USDC --amount 0.01 --yes --json --yes is required for non-interactive execution. Without it, ClawDex exits with code 1.
clawdex status --json Verify RPC connectivity, wallet validity, and config state.
Always follow this sequence: Health check โ clawdex status --json โ abort if rpc.healthy is false Check balances โ clawdex balances --json โ verify sufficient funds Simulate โ clawdex swap --simulate-only --json โ preview the trade Execute โ clawdex swap --yes --json โ only if simulation looks good Verify โ clawdex balances --json โ confirm balances updated (may need 5s delay on public RPC)
Tokens can be passed by symbol or mint address: By symbol: SOL, USDC, USDT By mint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
CodeMeaningAgent action0SuccessContinue1General errorCheck message2Config errorRun onboarding3Safety violationReduce amount or adjust limits4Simulation failedTry different pair/amount5Send failedRetry with backoff
Set guardrails to prevent runaway trades: clawdex safety set max_slippage_bps=300 max_trade_sol=1 max_price_impact_bps=100 When a guardrail triggers, the JSON response includes a violations array describing what failed.
Always use --json for machine-parseable output Always use --yes for real swaps (not needed for --simulate-only) Never skip simulation unless you have a good reason โ use --simulate-only first Parse balance as a string, not a number โ it preserves full decimal precision Check exit codes โ non-zero means the trade did not succeed Wait before verifying โ RPC balance reads can lag a few seconds after a swap
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.