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.Types

This module defines shared types used in Solana RPC responses and configuration payloads. It includes generic RPC response envelopes, context metadata, and configuration options for request customization.

These types are reused across many Solana JSON-RPC methods and should be imported wherever Solana RPC requests or responses are constructed or parsed.

  • 4 types
  • 2 values

RPCResponse

3 declarations
typetype Slot = Word64
#

Alias for a Solana slot number.

datadata Context
#

Contains contextual information returned with most Solana RPC responses.

Includes API version and the slot at which the response is valid.

Constructors

Instances4Show, Generic, FromJSON, Rep
datadata RPCResponse a
#

Generic wrapper for Solana RPC responses that include a context and a value.

Many Solana RPC methods return a response shaped like:

{ "context": { ... }, "value": <data> }

Constructors

Instances2Show, FromJSON

ConfigurationObject

3 declarations
datadata ConfigurationObject
#

Configuration options used to customize Solana RPC requests.

Many RPC methods accept a configuration object to control encoding, commitment level, preflight behavior, and more.

Constructors

Instances4Show, Generic, ToJSON, Rep