dflow-phantom-connect
Qué hace
Esta skill cubre la creación de apps web y móviles en Solana que se conectan a una cartera Phantom. También cubre DFlow, que gestiona intercambios de tokens al contado, precios en vivo y datos de mercado, para desarrolladores que añaden inicio de sesión con cartera, pagos o trading a una app.
Cuándo usarla
- ✓Cuando quieres que los usuarios conecten una cartera Phantom en una app de React, React Native o JavaScript puro.
- ✓Cuando quieres añadir páginas con acceso por token, acuñación de NFT o pagos en cripto en Solana.
- ✓Cuando quieres que tu app intercambie tokens o muestre precios en vivo usando DFlow.
Link de la skill
https://github.com/internet-court/internet-court-skill/blob/main/vendored/dflow/dflow-phantom-connect/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Quiero que mi app web permita a los usuarios conectar una cartera Phantom e intercambiar tokens con DFlow.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente elige la referencia adecuada para tu framework y tu tarea, y luego escribe código que conecta la cartera, le pide firmar mensajes o transacciones, y llama a DFlow para cotizaciones e intercambios. Lee todas las referencias relevantes antes de escribir código.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Phantom Connect + DFlow Skill
Instructions
Step 1: Identify What the User Wants to Build
Determine the domain, then route to the right references.
Wallet connection and Solana interactions:
- Connecting a Phantom wallet (React, React Native, vanilla JS)
- Signing messages or transactions
- Token-gated access
- NFT minting
- Crypto payments
- Solana transfers (SOL or SPL tokens)
DFlow trading & market data:
- Spot token swaps (quote, sign, submit, confirm)
- Live prices, order-book depth, or priority-fee streaming
Many tasks combine both (for example, a swap UI needs wallet connection AND DFlow trading). Read all relevant references before writing code.
Step 2: Read the Relevant References
Phantom Connect SDKs (wallet connection, signing, auth):
references/react-sdk.md: React hooks, components, theming, PhantomProviderreferences/react-native-sdk.md: Expo config, polyfills, deep links, mobile authreferences/browser-sdk.md: BrowserSDK init, events, wallet discovery, vanilla JS
Solana patterns (transactions, gating, minting, payments):
references/transactions.md: SOL/SPL transfers, signing, fee estimationreferences/token-gating.md: client-side and server-side token-gated accessreferences/nft-minting.md: mint pages, Metaplex Core, compressed NFTsreferences/payments.md: SOL/USDC payments, checkout with backend verification
DFlow (swaps, streaming):
references/dflow-crypto-trading.md: spot swaps via/order(atomic units, base58 mints, quote-without-wallet, priority/platform/sponsor fees)references/dflow-websockets.md: real-time quote, order-book, and priority-fee streaming (browser proxies through the backend)
Step 3: Ask the Right Questions
Before implementing, ask questions based on the domain:
For Phantom Connect tasks:
- Which platform? (React, React Native, vanilla JS)
- Do they need social login (Google/Apple) or extension only?
For DFlow tasks:
- Do you have a DFlow API key? (Yes: prod host with
x-api-key. No: dev host, rate-limited. Prod key: pond.dflow.net/get-started/api-key.) It's one key for everything DFlow. - Client environment? (web, mobile, backend, CLI) Browser apps keep the key on the backend and proxy DFlow HTTP and WebSocket through it.
- Platform fees? If yes, what bps and which builder-owned fee account (which must already exist)?
Step 4: Implement
Follow the patterns in the reference files. Key rules by domain:
Phantom Connect:
- All SDK details (provider setup, hooks, components, auth providers) are in the SDK reference files. Read them before writing Phantom integration code.
DFlow:
- Trades are synchronous: one
/ordercall returns a signed-ready transaction that you sign, submit, and confirm. - As a security best practice, keep the DFlow API key on the backend, not in browser code. Browser apps proxy DFlow HTTP (
/orderserves no CORS) and the WebSocket streams through their backend. - Dev endpoints (
dev-quote-api.dflow.net) work without a key but are rate-limited; production requires a key from pond.dflow.net/get-started/api-key. In production, quote and book stream access is granted per key.
Step 5: Handle Errors
Each reference file contains domain-specific error handling. Key cross-cutting concerns:
- User rejects a transaction or signature request
- Wallet not connected when a signed action is attempted
- DFlow API returns 429 (rate limited): retry with backoff or get a production API key
route_not_foundfrom DFlow: a likely cause is insufficient liquidity for the pair at that size; also check the mint addresses and thatamountis in atomic units
Examples
Example 1: React wallet connection
User says: "Add Phantom wallet login to my Next.js app"
Actions:
- Read
references/react-sdk.md - Install
@phantom/react-sdk - Wrap app in PhantomProvider with desired auth providers and appId
- Use
useModalhook for a connect button - Use
useAccountsto display the connected wallet address
Result: Working wallet connection with social login and extension support
Example 2: Token-gated page
User says: "Build a page that only BONK holders can see"
Actions:
- Read
references/react-sdk.mdandreferences/token-gating.md - Set up wallet connection
- Query the BONK token balance for the connected wallet
- Conditionally render content based on balance threshold
- For production: add server-side signature verification
Result: Pa
Preguntas frecuentes
¿Qué frameworks admite la conexión con la cartera?
React, React Native y JavaScript puro para el navegador, cada uno con su propio SDK de Phantom.
¿También puede gestionar acuñación de NFT y pagos?
Sí. La skill incluye referencias para la acuñación de NFT, el acceso con token y los pagos en SOL o USDC.
¿Cómo funciona un intercambio con DFlow?
La skill sigue los pasos de pedir una cotización, firmar, enviar y confirmar el intercambio.
Detalles
Descripción original del autor
Build Solana wallet-connected apps with Phantom Connect SDKs and DFlow spot trading. Use when user asks to connect a Phantom wallet, integrate Phantom in React, React Native, or vanilla JS, sign messages or transactions, build token-gated pages, mint NFTs, accept crypto payments, or swap/stream tokens with DFlow. Covers @phantom/react-sdk, @phantom/react-native-sdk, @phantom/browser-sdk, and DFlow spot trading and market-data streaming. Do NOT use for Ethereum or EVM wallet integrations, or non-DFlow DEX routing.
Popularidad
- Estrellas en GitHub
- 7,0 mil
- Posición en el ranking
- #13625
- Licencia
- —
- Actualizada
- 26/10/2026
Comentarios
- …
Más skills de este repositorio
internet-court
7,0 milAyuda a tu agente a pagar, contratar o tratar de forma segura con otro agente de IA o con un servicio de pago, y lo dirige a la guía especializada adecuada.
genlayer-erc7710-connector
7,0 milAyuda a tu agente a conectar el resultado de una revisión de IA con un sistema de permisos, para que una mala revisión limite o cancele los permisos de un agente.
genlayer-intelligent-contracts
7,0 milAyuda a tu agente a definir las reglas, las pruebas y los resultados de un juez de IA que comprueba si otro agente cumplió su mandato.
x402-erc7710
7,0 milAyuda a tu agente a pagar servicios web una solicitud a la vez, y a configurar un gasto continuo que se mantenga dentro de un presupuesto de permisos.
Skills parecidas
angular-developer
280 milAyuda a tu agente con código de Angular y la estructura del proyecto. Útil para empezar proyectos, crear partes de código o mejorar el rendimiento y la accesibilidad.
frontend-a11y
280 milAyuda a tu agente a hacer que las interfaces web sean accesibles para todos. Asegura que sitios y apps funcionen bien con lectores de pantalla y navegación por teclado.
frontend-patterns
280 milHace que tu agente aplique patrones modernos en desarrollo frontend. Optimiza el rendimiento, gestiona el estado y sigue buenas prácticas en React y Next.js.