solana-easy-swap

Swap Solana tokens via Jupiter with a local keypair.

168|13|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/npc-live/clawfirm --skill solana-easy-swap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solana-easy-swap
Source: https://github.com/npc-live/clawfirm/tree/main/app/assets/skills/solana/solana-easy-swap
Command: npx skills add https://github.com/npc-live/clawfirm --skill solana-easy-swap

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @solana/web3.js, bs58, and includes scripts (resource) components.

What problem does it solve?

Enables users to swap Solana tokens directly from chat by quoting, signing, and submitting transactions without external wallets.

Core Features & Use Cases

  • Quick token swaps from chat using Jupiter as the on-chain router and a local keypair for signing.
  • Supports common pairs (SOL↔USDC, SOL↔USDT) with configurable slippage and optional destination addresses for third-party transfers.
  • Use Case: A user wants to swap 1 SOL for USDC directly in chat and receive a signed transaction ready to broadcast.

Quick Start

Speak a swap request like "swap 1 SOL for USDC" and confirm when prompted.

Frequently Asked Questions about solana-easy-swap

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I swap Solana tokens directly from a chat interface?

You can swap Solana tokens directly from chat by instructing the chat to swap a specific amount, which triggers Jupiter quote and swap endpoints to build, sign, and broadcast a versioned transaction automatically using a local keypair.

Do I need an external wallet to execute Solana swaps within chat workflows?

No, executing Solana swaps within chat workflows does not require an external wallet because the process uses a locally configured Solana keypair via SOLANA_KEYPAIR_PATH to sign and submit transactions automatically.

Can I swap SOL for USDC or USDT using Jupiter routing without leaving the chat?

Yes, you can swap SOL for USDC or USDT using Jupiter routing without leaving the chat by simply commanding the swap, which uses Jupiter endpoints to fetch quotes and broadcast the signed transaction.

What configuration is required to sign and submit Solana swap transactions from chat?

To sign and submit Solana swap transactions from chat, you must configure a Solana keypair using the SOLANA_KEYPAIR_PATH environment variable and provide access to a Solana RPC endpoint for broadcasting.

Can I send swapped Solana tokens to a third-party destination address?

Yes, you can send swapped Solana tokens to a third-party destination address by specifying the optional destination address during your chat swap request, allowing the signed transaction to route tokens elsewhere.

Are there limitations when using local keypairs for auto-signing Solana swaps?

A limitation of using local keypairs for auto-signing Solana swaps is that the chat environment must securely manage the SOLANA_KEYPAIR_PATH private key, restricting use to compatible systems with safe key access.