HORIZON HASKELLDocslts/ghc-9.14.x99ffbb82026-10-19Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 99ffbb8 · 2026-10-19

Modulesolana-haskell-sdk-1.3.0.0GHC2021

Network.Solana.RPC.HTTP.Chain

This module provides access to Solana JSON-RPC endpoints related to cluster-wide and node-specific information.

These endpoints are especially useful for monitoring, diagnostics, and understanding the state of the cluster from a validator or RPC node's perspective.

Contents
  1. getClusterNodes
  2. getHealth
  3. getHighestSnapshotSlot
  4. getIdentity
  5. getRecentPerformanceSamples
  6. getRecentPrioritizationFees
  7. getVersion
Synopsis

getClusterNodes

datadata ClusterNodes

Contains information about all the nodes participating in the cluster.

Constructors

Instances4Show, Generic, FromJSON, Rep

getHealth

valuegetHealth :: JsonRpc m => m String

Checks if the node is healthy.

A healthy node is within a certain number of slots (defined by HEALTH_CHECK_SLOT_DISTANCE, a validator-side constant) of the latest confirmed cluster slot. Returns "ok" if healthy; otherwise, an error is returned.

getHighestSnapshotSlot

Returns the highest full and incremental snapshot slots that the node has generated.

This includes the highest full snapshot slot and, if available, the corresponding highest incremental snapshot slot.

Contains the highest slot information that the node has snapshots for.

Constructors

Instances4Show, Generic, FromJSON, Rep

getIdentity

newtypenewtype NodeIdentity

Identity information for the current node.

Constructors

Instances4Show, Generic, FromJSON, Rep

getRecentPerformanceSamples

Performance metrics sampled periodically from the node.

Constructors

Instances4Show, Generic, FromJSON, Rep

getRecentPrioritizationFees

A prioritization fee sample from a recent block.

Constructors

Instances4Show, Generic, FromJSON, Rep

Nearest-rank percentile over the sorted, nonzero fee samples (e.g. from getRecentPrioritizationFees). Zero samples (slots with no priority fee) are dropped before ranking, so the result reflects only slots that actually paid a priority fee. p is clamped into [0, 1]. An empty sample list, or one containing only zeros, returns 0.

getVersion

datadata SolanaVersion

Contains information about the software version and feature set identifier of the node.

Constructors

Instances5Eq, Show, Generic, FromJSON, Rep