Complete Trading Infrastructure
for native Bitcoin assets
The modular exchange stack
for Bitcoin builders
Choose your trading stack
Two powerful ways to enable Bitcoin trading. Use one or combine them both for maximum flexibility.
AMMs
Instant liquidity for any Bitcoin asset. Deploy pools, earn fees, enable permissionless trading with different pool types.
Native Bitcoin assets
Sub-second settlement
No MEV
COMING SOON
Central Limit Order Book
Institutional-grade order books with sub-10ms latency. Advanced order types and deep liquidity for professional traders.
1M+ orders/second
Advanced order types
Real-time analytics
Start building in minutes
Integrate Flashnet with just a few lines of code. One SDK for all trading products.
trading.ts
1import { FlashnetClient, BTC_ASSET_PUBKEY } from '@flashnet/sdk';2import { SparkWallet } from '@buildonspark/spark-sdk';34// Create client5const { wallet } = await SparkWallet.initialize({6 mnemonicOrSeed: process.env.MNEMONIC,7 options: { network: "REGTEST" }8});910const client = new FlashnetClient(wallet);11await client.initialize();1213// List top pools by TVL14const pools = await client.listPools({15 sort: "TVL_DESC",16 limit: 1017});1819// Get the top pool20const topPool = pools.pools[0];21const poolDetails = await client.getPool(topPool.lpIdentityPublicKey);2223// Swap against it24const swap = await client.executeSwap({25 poolId: topPool.lpIdentityPublicKey,26 assetInAddress: BTC_ASSET_PUBKEY,27 assetOutAddress: poolDetails.assetBAddress,28 amountIn: 10000000n, // 0.1 BTC29 minAmountOut: 99000000n, // Min output with slippage30 maxSlippageBps: 100 // 1% max slippage31});3233console.log('Swapped successfully:', swap.amountOut);
Ready to build the future of Bitcoin trading?
Join the growing ecosystem of builders creating next-generation Bitcoin applications.