Module Terminal
RPC Terminal Module, specifically designed for TUI (Terminal User Interface) applications.
This module provides optimized endpoints for terminal-based monitoring tools and dashboards, with intelligent caching to minimize performance impact while providing real-time insights.
Intended Use Cases
- TUI Monitoring Dashboards: Real-time node status displays in terminal environments
- System Administration: Command-line tools for node health monitoring
- Resource Monitoring: Tracking system resource usage over time
- Network Diagnostics: Monitoring peer connectivity and performance
Performance Considerations
The module uses a multi-tiered caching strategy with TTLs optimized for different data change frequencies. For frequent monitoring calls, use cached data (refresh: null) to minimize system load. Force refresh only when real-time accuracy is critical.
Refresh Flags Guide
Use RefreshKind bit flags strategically:
- Monitoring Mode: Use
nullor0for cached data (recommended) - Diagnostics Mode: Use specific flags to refresh relevant data only
- Full Sync: Use
EVERYTHING(31) for complete data refresh
Method get_overview
get_overview(refresh)refresh:integer|null
- result:
Overview
Returns a comprehensive overview of KRYVON node status for TUI applications.
This method aggregates system metrics, mining information, transaction pool status, cells statistics, and network peer information into a single response, optimized for terminal-based monitoring interfaces.
Params
refresh- Optional bit flags to force refresh specific cached data types. UseRefreshKindbit flags to control which data to refresh:0x1(SYSTEM_INFO): Force refresh system information (CPU, memory, disk, network)0x2(MINING_INFO): Force refresh mining information (difficulty, hash rate)0x4(TX_POOL_INFO): Force refresh transaction pool information0x8(CELLS_INFO): Force refresh cells information0x10(NETWORK_INFO): Force refresh network peer latency information0x1F(EVERYTHING): Force refresh all cached datanullor0: Use cached data when available (recommended for frequent calls)
Returns
Returns an Overview structure containing:
- System information (CPU, memory, disk, network metrics)
- Mining information (network difficulty and hash rate)
- Transaction pool statistics
- Blockchain cells information
- Network peer connectivity and latency data
- KRYVON node version
Cache Behavior
Data is cached with different TTL values to balance freshness with performance:
- System info: 5 seconds (changes frequently)
- Mining info: 10 seconds (moderate change frequency)
- Transaction pool: 2 seconds (highly dynamic)
- Cells info: 30 seconds (relatively static)
- Network info: 10 seconds (moderate change frequency)
Example
Request
{
"jsonrpc": "2.0",
"id": 1,
"method": "get_overview",
"params": []
}
Response excerpt
{
"jsonrpc": "2.0",
"result": {
"version": "0.210.0 ( )"
},
"id": 1
}