Skip to main content
Bookie uses a multi-stage pipeline to convert natural language into executable Solana transactions with sub-second latency.

System Overview

Intent Layer - NLP model extracts entities (tokens, amounts, addresses) from natural language input. Routing Layer - Jupiter V6 integration calculates optimal swap paths across Solana DEXs. Execution Layer - Transaction builder, simulator, and broadcaster handle Solana interaction.

Transaction Pipeline

1. Intent Parser Service

Converts natural language to structured transaction parameters. Input: “Swap 5 SOL for USDC” Output:
{
  "action": "swap",
  "inputToken": "So11111111111111111111111111111111111111112",
  "outputToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "amount": 5000000000,
  "slippage": 50
}
Processing Time: ~40ms

2. Route Calculation

Jupiter V6 SDK queries liquidity pools and calculates optimal routing.
Pool TypeSupported
Orca WhirlpoolsYes
Raydium AMMYes
Meteora DLMMYes
PhoenixYes
Processing Time: ~110ms

3. Transaction Simulation

Pre-flight simulation prevents failed transactions and unexpected slippage.
const simulation = await connection.simulateTransaction(transaction);

if (simulation.value.err) {
  throw new Error('Transaction would fail');
}
Processing Time: ~8ms

4. User Approval

Transaction presented to wallet for manual confirmation. Bookie never accesses private keys.

5. Broadcast & Monitoring

Transaction sent to Solana with WebSocket monitoring for confirmation. Processing Time: ~3ms broadcast + network confirmation

Security Architecture

Non-Custodial

Read-only wallet connection. Private keys never leave user’s device

Simulation First

All transactions simulated before user approval

Transparent Routing

Full visibility into swap paths and price impact

Slippage Protection

Configurable slippage limits prevent sandwich attacks

Performance Metrics

StageLatency (p50)Latency (p99)
Intent Parsing42ms78ms
Route Calculation110ms245ms
Transaction Build8ms15ms
Simulation12ms28ms
Broadcast3ms8ms
Total Pipeline175ms374ms

Jupiter V6 Integration

Bookie uses Jupiter’s aggregator to access deep liquidity across Solana. Benefits:
  • Best price execution across all DEXs
  • Automatic route splitting for large orders
  • MEV protection through private transaction submission
  • Real-time price impact calculation

State Management

Bookie maintains minimal state for optimal performance:
  • Active wallet connection (session-based)
  • Recent transaction history (client-side cache)
  • Portfolio balances (refreshed on-demand)
Bookie does not store private keys, transaction history, or personal data on servers. All sensitive operations occur client-side.