Flashnet is the leading AMM (automated market maker) on Spark. It enables instant token swaps, liquidity pools, and market creation without custody risk. Built on Spark’s cryptographic messaging layer, Flashnet provides near-instant settlement and zero-fee transactions for Bitcoin and token trading in your applications.Learn more ->
import { FlashnetClient } from '@flashnet/sdk';import { SparkWallet } from '@buildonspark/spark-sdk';// Initialize your Spark walletconst { wallet } = await SparkWallet.initialize({ mnemonicOrSeed: process.env.MNEMONIC, options: { network: "REGTEST", // or "MAINNET" },});// Create the Flashnet clientconst client = new FlashnetClient(wallet);await client.initialize();// The client will automatically:// - Authenticate with the AMM service// - Handle all signing and intent generation