import { FlashnetClient } from '@flashnet/client'
const client = new FlashnetClient({
apiKey: 'your-flashnet-key',
network: 'spark'
})
// Swap tokens instantly
const swap = await client.swap({
fromToken: 'BTC',
toToken: 'USDT',
amount: '1000000', // 0.01 BTC in sats
slippage: 0.5
})