dflow

Build Solana trading applications combining DFlow trading APIs with Helius infrastructure.

1|Updated Aug 5, 2026
One-click install
npx skills add https://github.com/Solizardking/Solana-Robotics-Kit --skill dflow-solizardking
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: dflow
Source: https://github.com/Solizardking/Solana-Robotics-Kit/tree/main/eliza/plugins/clawd-code/clawd-plugin/skills/dflow
Command: npx skills add https://github.com/Solizardking/Solana-Robotics-Kit --skill dflow-solizardking

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires helius-sdk, helius-laserstream, @solana/spl-token, @dflow-protocol/swap-api-utils, and includes references (resource) components.

What problem does it solve? Building trading applications on Solana requires stitching together DEX aggregation, transaction submission, fee optimization, real-time data streaming, and KYC compliance across multiple APIs. This Skill provides structured guidance for combining DFlow's trading APIs with Helius infrastructure so you implement each integration correctly the first time. ## Core Features & Use Cases - Spot Swaps & Prediction Markets: Implement imperative and declarative token swaps, prediction market trading with Proof KYC gating, and order status polling via DFlow APIs. - Transaction Submission & Fees: Submit transactions through Helius Sender with dynamic priority fee optimization instead of raw RPC calls. - Real-Time Data & Autonomous Agents: Stream market data via DFlow WebSockets, on-chain data via LaserStream, and configure the DFlow Agent CLI with guardrails for autonomous trading. - Use Case: Build a trading bot that streams prices from DFlow WebSockets, executes swaps through the DFlow order API, submits via Helius Sender, and detects fills at shred-level latency with LaserStream. ## Quick Start Ask the assistant to build a Solana token swap using DFlow for the quote and Helius Sender for transaction submission.

Frequently Asked Questions about dflow

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

FAQPage Schema
How do I build a token swap on Solana with DFlow?▼

Request an order from the DFlow Trade API with input/output mints and amount in atomic units, sign the returned transaction, and submit it through Helius Sender with skipPreflight enabled. Poll the order-status endpoint for async trades.

How do I set up an autonomous trading agent with the DFlow Agent CLI?▼

Install the CLI with the curl installer, run dflow setup to configure an encrypted wallet and RPC endpoint, then set guardrails like max_trade_size_usd before executing trades. Use the --confirm flag for non-interactive execution.

When should I use LaserStream vs Helius Enhanced WebSockets?▼

Use LaserStream for latency-critical systems like trading bots and liquidation engines needing shred-level data and 24-hour historical replay; it requires a Business+ plan on mainnet. Use Enhanced WebSockets for simpler real-time UIs and transaction monitoring on Developer plans.

Does DFlow prediction market trading require KYC?▼

Yes, Proof KYC is required for buying and selling prediction market outcome tokens, but not for browsing markets or spot swaps. Gate verification at trade time using the Proof verify API and deep link flow.

Why does my DFlow order return route_not_found?▼

The most common cause is passing human-readable amounts instead of atomic units, such as 8 instead of 8000000. Other causes include insufficient liquidity for the pair or a wrong output mint when selling outcome tokens.

Can I call the DFlow Trade API directly from a browser app?▼

No, the DFlow Trade API does not set CORS headers, so browser fetch calls will fail. You must proxy Trade API requests through your own backend such as Cloudflare Workers or an Express server.