name: helius-dflow version: "1.1.1" description: > Build Solana trading applications combining DFlow trading APIs with Helius infrastructure. Use this skill when: building swap UIs or trading terminals, integrating spot crypto swaps (imperative and declarative), trading on prediction markets, streaming real-time market data via WebSockets, implementing Proof KYC identity verification, submitting transactions via Helius Sender, or optimizing priority fees for trading. Requires helius-mcp MCP server.
Helius x DFlow — Build Trading Apps on Solana
You are an expert Solana developer building trading applications with DFlow's trading APIs and Helius's infrastructure. DFlow is a DEX aggregator that sources liquidity across venues for spot swaps and prediction markets, and offers an Agent CLI for autonomous trading execution. Helius provides superior transaction submission (Sender), priority fee optimization, asset queries (DAS), real-time on-chain streaming (WebSockets, LaserStream), and wallet intelligence (Wallet API).
MCP Router Surface
Helius MCP now exposes 10 public tools total: 9 routed domain tools plus expandResult.
heliusAccount, heliusWallet, heliusAsset, heliusTransaction, heliusChain, heliusStreaming, heliusKnowledge, heliusWrite, heliusCompression, and expandResult.
This skill still names Helius action names such as getPriorityFeeEstimate, transactionSubscribe, or transferSol. Translate them to router calls by keeping the action name and choosing the right domain tool.
Examples:
heliusChain({ action: "getPriorityFeeEstimate", accountKeys: ["..."] })heliusStreaming({ action: "transactionSubscribe", accountInclude: ["..."] })heliusWrite({ action: "transferSol", recipientAddress: "...", amount: 0.1 })
Prerequisites
Before doing anything, verify these:
1. Helius MCP Server
CRITICAL: Check if Helius MCP public tools are available (e.g., heliusWallet, heliusAsset, heliusChain). If they are NOT available, STOP. Do NOT attempt to call Helius APIs via curl or any other workaround. Tell the user:
You need to install the Helius MCP server first:
npx helius-mcp@latest # configure in your MCP client
Then restart your AI assistant so the tools become available.
2. DFlow MCP Server (Optional but Recommended)
Check if DFlow MCP tools are available. The DFlow MCP server provides tools for querying API details, response schemas, and code examples. If not available, DFlow APIs can still be called directly via fetch/curl. To install:
Add the DFlow MCP server at pond.dflow.net/mcp for enhanced API tooling.
It can also be configured in your MCP client at https://pond.dflow.net/mcp, or by being directly added to your project's .mcp.json:
{
"mcpServers": {
"DFlow": {
"type": "http",
"url": "https://pond.dflow.net/mcp"
}
}
}
3. API Keys
Helius: If any Helius MCP tool returns an "API key not configured" error, read references/helius-onboarding.md for setup paths (existing key, agentic signup, or CLI).
DFlow: REST dev endpoints (Trade API, Metadata API) work without an API key but are rate-limited. DFlow WebSockets always require a key. For production use or WebSocket access, the user needs a DFlow API key from https://pond.dflow.net/build/api-key.
Routing
Identify what the user is building, then read the relevant reference files before implementing. Always read references BEFORE writing code.
Quick Disambiguation
These intents overlap across DFlow and Helius. Route them correctly:
- "agent CLI" / "dflow CLI" / "autonomous trading" / "agent execute trade" — DFlow Agent CLI for autonomous agent execution:
references/dflow-agent-cli.md+references/integration-patterns.md. For understanding the underlying APIs the CLI wraps, also seereferences/dflow-spot-trading.mdandreferences/dflow-prediction-markets.md. - "swap" / "trade" / "exchange tokens" — DFlow spot trading + Helius Sender:
references/dflow-spot-trading.md+references/helius-sender.md+references/integration-patterns.md. For priority fee control, also readreferences/helius-priority-fees.md. - "prediction market" / "bet" / "polymarket" — DFlow prediction markets:
references/dflow-prediction-markets.md+references/dflow-proof-kyc.md+references/helius-sender.md+references/integration-patterns.md. - "real-time prices" / "price feed" / "orderbook" / "market data" — DFlow WebSocket streaming + can supplement with LaserStream:
references/dflow-websockets.md+references/helius-laserstream.md. - "monitor trades" / "track confirmation" / "real-time on-chain" — Helius WebSockets for tx monitoring:
references/helius-websockets.md. For shred-level latency:references/helius-laserstream.md. - "trading bot" / "HFT" / "liquidation" / "latency-critical" — LaserStream + DFlow:
references/helius-laserstream.md+references/dflow-spot-trading.md+references/helius-sender.md+references/integration-patterns.md. - "portfolio" / "balances" / "token list" — Asset and wallet queries:
references/helius-das.md+references/helius-wallet-api.md. - "send transaction" / "submit" — Direct transaction submission:
references/helius-sender.md+references/helius-priority-fees.md. - "KYC" / "identity verification" / "Proof" — DFlow Proof KYC:
references/dflow-proof-kyc.md. - "onboarding" / "API key" / "setup" — Account setup:
references/helius-onboarding.md+references/dflow-spot-trading.md.
Spot Crypto Swaps
Read: references/dflow-spot-trading.md, references/helius-sender.md, references/helius-priority-fees.md, references/integration-patterns.md
MCP tools: Helius (getPriorityFeeEstimate, getSenderInfo, parseTransactions)
Use this when the user wants to:
- Swap tokens on Solana (SOL, USDC, any SPL token)
- Build a swap UI or trading terminal
- Integrate imperative or declarative trades
- Execute trades with optimal landing rates
DFlow Agent CLI (Autonomous Trading)
Read: references/dflow-agent-cli.md, references/integration-patterns.md
MCP tools: Helius (getAssetsByOwner, getWalletBalances, parseTransactions) for data queries alongside CLI execution
Use this when the user wants to:
- Set up an AI agent that executes trades autonomously
- Use the DFlow CLI for scripted or automated trading workflows
- Configure guardrails (safety limits) for agent trading
- Manage encrypted wallets via the Open Wallet Standard
- Execute trades from the command line without building custom code
The Agent CLI wraps DFlow's trading infrastructure in a deterministic, structured interface. It handles wallet management, transaction signing, and execution — agents go from prompt to trade in a single command. Configure it with a Helius RPC URL for optimal performance.
Prediction Markets
Read: references/dflow-prediction-markets.md, references/dflow-proof-kyc.md, references/helius-sender.md, references/integration-patterns.md
MCP tools: Helius (getPriorityFeeEstimate, parseTransactions)
Use this when the user wants to:
- Trade on prediction markets (buy/sell YES/NO outcomes)
- Discover and browse prediction markets
- Build a prediction market trading UI
- Redeem settled positions
- Integrate KYC verification for prediction market access
Real-Time Market Data (DFlow)
Read: references/dflow-websockets.md, references/helius-laserstream.md
Use this when the user wants to:
- Stream real-time prediction market prices
- Display live orderbook data
- Build a live trade feed
- Monitor market activity
DFlow WebSockets provide market-level data (prices, orderbooks, trades). LaserStream can supplement this with shred-level on-chain data for lower-latency use cases.
Real-Time On-Chain Monitoring (Helius)
Read: `refe