dflow-swap

Execute Solana token swaps via dflow_swap with slippage and balance checks.

3|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/Pieverse-Eng/purrfect-skills --skill dflow-swap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dflow-swap
Source: https://github.com/Pieverse-Eng/purrfect-skills/tree/main/dflow-swap
Command: npx skills add https://github.com/Pieverse-Eng/purrfect-skills --skill dflow-swap

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Solana-based token swaps require a dependable on-chain routing path. This skill provides a clear, Solana-focused implementation that executes swaps via dflow_swap when the chain is SOL.

Core Features & Use Cases

  • Supports Solana token swaps using dflow_swap for streamlined on-chain execution.
  • Handles source and destination tokens, input amount, and slippage constraints within SOL routing.
  • Use Case: Route a SOL-to-USDC swap on Solana with balance checks and wallet validation.

Quick Start

Invoke dflow_swap with from_token, to_token, from_amount, and chain SOL to perform a swap.

Frequently Asked Questions about dflow-swap

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

FAQPage Schema
How do I execute a Solana token swap programmatically with slippage protection?

To execute a Solana token swap, provide the source token, destination token, input amount, and chain type SOL. The swap applies slippage constraints and performs balance checks prior to routing the on-chain trade.

What inputs are required for an on-chain SOL swap?

An on-chain SOL swap requires a wallet address with chain type SOL, from token, to token, from amount, and chain SOL. Optional slippage parameters are also accepted to control price tolerance.

Does this Solana swap approach validate balances before routing the trade?

Yes, this Solana swap approach validates wallet balances and enforces input checks before executing the on-chain transaction. This ensures the source token amount is sufficient prior to routing.

Can I swap SOL to USDC on Solana using this routing method?

Yes, you can swap SOL to USDC on Solana by specifying SOL as the from token and USDC as the to token. The method handles source and destination tokens within SOL routing chains.

What happens if my Solana token swap fails on-chain?

If a Solana token swap fails, the method enforces validation and retry guidance as described in its tool contract. This provides structured error handling for on-chain execution issues.

Is there a way to set custom slippage tolerances for Solana swaps?

Yes, custom slippage tolerances can be set for Solana swaps using an optional slippage parameter. This allows you to control the acceptable price deviation during the on-chain execution.