HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

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.

  • 6 types
  • 9 values

getClusterNodes

2 declarations
datadata ClusterNodes
#

Contains information about all the nodes participating in the cluster.

Constructors

Instances4Show, Generic, FromJSON, Rep

getHealth

1 declaration
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

2 declarations

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.

datadata HighestSnapshotSlot
#

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

Constructors

Instances4Show, Generic, FromJSON, Rep

getIdentity

3 declarations
newtypenewtype NodeIdentity
#

Identity information for the current node.

Constructors

Instances4Show, Generic, FromJSON, Rep

getRecentPerformanceSamples

2 declarations

Returns a list of recent PerformanceSample entries, in reverse slot order.

Performance samples are collected every 60 seconds and include metrics such as the number of transactions, slots, and non-vote transactions within each sample window. Optionally takes the number of samples to return (must be ≤ 720).

datadata PerformanceSample
#

Performance metrics sampled periodically from the node.

Constructors

Instances4Show, Generic, FromJSON, Rep

getRecentPrioritizationFees

3 declarations
datadata PrioritizationFee
#

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

2 declarations
datadata SolanaVersion
#

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

Constructors

Instances5Eq, Show, Generic, FromJSON, Rep