clawd-dflow

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

Updated Jun 8, 2026
One-click install
npx skills add https://github.com/Solizardking/clawd-cloud --skill clawd-dflow-solizardking
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: clawd-dflow
Source: https://github.com/Solizardking/clawd-cloud/tree/main/clawd-skills/clawd-dflow
Command: npx skills add https://github.com/Solizardking/clawd-cloud --skill clawd-dflow-solizardking

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building Solana trading applications requires coordinating DEX aggregation, prediction markets, transaction submission, fee optimization, and real-time data streaming across multiple APIs. This Skill provides the routing logic, reference documentation, and integration patterns to implement these workflows correctly without guessing at endpoints, fee parameters, or submission methods. ## 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 estimation instead of raw RPC calls. - Real-Time Data & Autonomous Agents: Stream market data via DFlow WebSockets, shred-level on-chain data via LaserStream, and execute autonomous trades with the DFlow Agent CLI including guardrails. - Use Case: A developer building a trading bot reads the integration patterns, uses DFlow WebSockets for price signals, executes orders through the DFlow order API, submits via Helius Sender, and detects fills with LaserStream. ## Quick Start Ask the assistant to swap 1 SOL for USDC using DFlow with Helius Sender for transaction submission.

Frequently Asked Questions about clawd-dflow

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

FAQPage Schema
How do I swap tokens on Solana using DFlow?▼

Request a quote from the DFlow /order endpoint with input mint, output mint, and amount in atomic units, then sign the returned transaction and submit it via Helius Sender. Use imperative trades for deterministic routing or declarative trades for execution-time optimization.

How do I build a prediction market trading UI on Solana?▼

Use the DFlow Metadata API for market discovery, the order API for trades, Proof KYC for identity verification at trade time, and DFlow WebSockets for live prices. Only markets with status active accept trades, and all prediction market orders are async requiring order-status polling.

What is the difference between Helius LaserStream and Enhanced WebSockets?▼

LaserStream is a gRPC service with shred-level latency, 24-hour historical replay, and auto-reconnect, requiring a Business+ plan for mainnet. Enhanced WebSockets use the simpler WebSocket protocol with lower latency than standard WebSockets, available from the Developer plan, suited for dashboards and monitoring.

Does DFlow trading require KYC verification?▼

Proof KYC is required only for buying and selling prediction market outcome tokens, not for spot swaps or browsing markets. Verification uses Stripe Identity, is free, and should be gated at trade time rather than at browsing time.

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 8_000_000 for 8 USDC. Other causes include insufficient liquidity for the pair, a wrong outputMint when selling outcome tokens, or no counterparty at the top of the orderbook.

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

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