Flashnet Trading
⚡ Flashnet
Flashnet is a decentralized trading and liquidity protocol built on Spark. It enables:
Instant swaps between Spark BTC and Spark-based tokens
Permissionless liquidity pools (constant product or bonding curve)
Token launchpads powered by bonding curves
🚀 Build Trading Experiences on Flashnet
With Sats Connect, you can integrate Flashnet trading directly into your app, while keeping users in control of their Spark wallet.
There are two ways to integrate Flashnet:
1️⃣ Orchestrate Flashnet calls yourself
Use the wallet for secure authentication and signing only:
spark_flashnet_getJWT
→ authenticate your user with Flashnetspark_flashnet_signIntent
→ request signed intents (swap, add/remove liquidity, create pools)
Your app handles the Flashnet API directly, while the wallet guarantees “What You See Is What You Sign” UX for the user.
2️⃣ Use Flashnet methods directly from Sats Connect
Let the wallet manage the full interaction with Flashnet, including transfers, JWT handling, intent signing, and submission.
Your dApp only makes a single request, and the wallet orchestrates the entire flow:
Trigger swaps via
spark_flashnet_executeSwap
& spark_flashnet_executeRouteSwapLaunch new trading pools with
spark_flashnet_createCPPool
,spark_flashnet_createBondingPool
andspark_flashnet_confirmInitialDeposit
Orchestrate liquidity provision via
spark_flashnet_addLiquidity
,spark_flashnet_removeLiquidity
andspark_flashnet_ClawbackFunds
All of these flows are presented through the Xverse wallet with clear review screens, so users:
See a clear breakdown of what they’re approving
Sign transactions with their Spark keys
Stay fully self-custodial throughout the process
Last updated