Security

RPC Integrity

Reliable RPC connectivity is essential for deterministic execution. Raiku continuously measures slot drift, endpoint health, and WebSocket fidelity, then surfaces that data in the UI and telemetry.

Monitoring

  • Multi-endpoint Connection objects with automatic failover.
  • Slot drift detection compares RPC slot timestamps against reference clocks.
  • WebSocket stall detection triggers fallback to REST polling.
  • Status piped into securityStore and UI components (e.g., SecurityMonitor).

Sample Monitor

rpcMonitor.ts
import { getRPCMonitor } from '@/lib/realtime/rpcMonitor'

const monitor = getRPCMonitor([
  'https://api.mainnet-beta.solana.com',
  'https://ssc-dao.genesysgo.net',
])

monitor.start()