Smart Data Relayer
Explanation for Synapse Gateway Only
Implement a Smart Data Layer
The Smart Data Layer is the intelligence core of Synapse Gateway RPC. It transforms raw blockchain data into ready-to-use, structured, and optimized information, minimizing processing needs on the client side and improving performance for both human users and AI agents.
Availability: The full Smart Data Layer functionality is available exclusively for Singularity and Custom subscription tiers.
Key Capabilities
Token Price Aggregation
Fetches prices from multiple on-chain liquidity sources (Raydium, Orca, Jupiter).
Applies smart selection of best pools based on liquidity depth, freshness, and stability.
Implements local JSON caching with timestamp validation to avoid repeated RPC calls.
OHLC (Open, High, Low, Close) Computation
Generates price candles in various timeframes (1m, 5m, 1h, 24h).
Utilizes high-performance Solana data fetching optimized for large datasets.
Delivers pre-computed values ready for chart rendering or AI decision-making.
Liquidity Pool Insights
Returns structured pool information (addresses, liquidity, token reserves, fees).
Supports multiple protocols with a normalized output format.
Integrated caching for faster repeated queries.
On-Chain Account Parsing
Decodes Solana accounts into human-readable structured JSON.
Supports DeFi protocols’ layouts for direct consumption by agents/tools.
Eliminates the need for developers to manually handle binary layouts.
Transaction Data Optimization
Extracts and formats relevant transaction logs (e.g., Memo v2).
Compatible with Memory Trace for storing agent session data on-chain.
Developer Benefits
Saves hours of integration time.
Avoids multiple redundant RPC calls.
Provides a uniform JSON structure across all endpoints.
Last updated