Architecture
Next.js App Router, server-only RPC calls via @solana/web3.js, parsed transfer classification, provenance-bearing evidence, graph visualization, validation, rate limiting, caching, and data boundaries.
Request flow
The browser submits a public address to a same-origin route. The route checks the address with PublicKey, checks the server RPC configuration, and obtains the latest bounded signature page. RPC credentials never enter client JavaScript.
Transaction parsing
VELNOK requests jsonParsed transaction data and inspects outer and inner instructions. Recognized System Program transfers are represented in SOL. Parsed SPL Token transfer and transferChecked instructions are included only when wallet owners can be mapped from token balance metadata or the parsed authority. Other account keys are not treated as counterparties.
Graph relationships
The graph displays direct transfers involving the searched wallet. Each edge is derived from one transfer instruction and carries the transaction signature, slot, time when available, asset type, amount, and optional mint. Selecting an edge opens the underlying explorer transaction. The current implementation does not recursively resolve multiple hops.
Caching and rate limits
Lookup responses use Cache-Control: no-store because results are time-sensitive and may include a provider-specific view. A small in-memory per-process limiter caps requests at 30 per minute per observed client IP; serverless instances do not share this counter. Configure provider-side quotas or a shared limiter before high-volume deployment.
Security boundaries
The RPC endpoint is server-only. Public keys are validated before lookup, history length is capped at 30 signatures, no signing APIs are called, and errors do not expose upstream RPC response bodies. Security headers are configured in next.config.mjs.