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.
import { FlashnetClient, BTC_ASSET_PUBKEY } from '@flashnet/sdk';
import { SparkWallet } from '@buildonspark/spark-sdk';
// Create client
const { wallet } = await SparkWallet.initialize({
mnemonicOrSeed: process.env.MNEMONIC,
options: { network: "REGTEST" }
});
const client = new FlashnetClient(wallet);
await client.initialize();
// List top pools by TVL
const pools = await client.listPools({
sort: "TVL_DESC",
limit: 10
});
// Get the top pool
const topPool = pools.pools[0];
const poolDetails = await client.getPool(topPool.lpIdentityPublicKey);
// Swap against it
const swap = await client.executeSwap({
poolId: topPool.lpIdentityPublicKey,
assetInAddress: BTC_ASSET_PUBKEY,
assetOutAddress: poolDetails.assetBAddress,
amountIn: 10000000n, // 0.1 BTC
minAmountOut: 99000000n, // Min output with slippage
maxSlippageBps: 100 // 1% max slippage
});
console.log('Swapped successfully:', swap.amountOut);
Ready to build the future of Bitcoin trading?
Join the growing ecosystem of builders creating next-generation Bitcoin applications.