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
Learn more
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
Learn more

Start building in minutes

Integrate Flashnet with just a few lines of code. One SDK for all trading products.

Open with
ClaudeChatGPTCursorGeminiGrok
trading.ts
1import { FlashnetClient, BTC_ASSET_PUBKEY } from '@flashnet/sdk';
2import { SparkWallet } from '@buildonspark/spark-sdk';
3
4// Create client
5const { wallet } = await SparkWallet.initialize({
6 mnemonicOrSeed: process.env.MNEMONIC,
7 options: { network: "REGTEST" }
8});
9
10const client = new FlashnetClient(wallet);
11await client.initialize();
12
13// List top pools by TVL
14const pools = await client.listPools({
15 sort: "TVL_DESC",
16 limit: 10
17});
18
19// Get the top pool
20const topPool = pools.pools[0];
21const poolDetails = await client.getPool(topPool.lpIdentityPublicKey);
22
23// Swap against it
24const swap = await client.executeSwap({
25 poolId: topPool.lpIdentityPublicKey,
26 assetInAddress: BTC_ASSET_PUBKEY,
27 assetOutAddress: poolDetails.assetBAddress,
28 amountIn: 10000000n, // 0.1 BTC
29 minAmountOut: 99000000n, // Min output with slippage
30 maxSlippageBps: 100 // 1% max slippage
31});
32
33console.log('Swapped successfully:', swap.amountOut);

Ready to build the future of Bitcoin trading?

Join the growing ecosystem of builders creating next-generation Bitcoin applications.