atlas-cardano
Copyright(c) 2025 GYELD GMBH
LicenseApache 2.0
Maintainer[email protected]
Stabilitydevelop
Safe HaskellNone
LanguageGHC2021

GeniusYield.Providers.Ogmios

Description

 
Synopsis

Documentation

newOgmiosApiEnv :: String -> IO OgmiosApiEnv #

Returns a new OgmiosApiEnv given the base url to query from.

>>> env <- newOgmiosApiEnv "http://localhost:1337"

data OgmiosProviderException #

Exceptions.

Constructors

OgmiosApiError !Text !ClientError

Error from the Ogmios API.

OgmiosErrorResponse !Text !Value

Received error response.

OgmiosIncorrectEraHistoryLength ![EraSummary]

The API returned an unexpected number of era summaries.

OgmiosTransactionDeserialisationError

Unable to deserialise transaction returned by Ogmios.

Fields

OgmiosWebsocketDecodeError

Unable to decode response given by Ogmios under Websocket connection.

Fields

ogmiosSubmitTx :: OgmiosApiEnv -> GYSubmitTx #

Submit a transaction to the node via Ogmios.

ogmiosGetSlotOfCurrentBlock :: OgmiosApiEnv -> IO GYSlot #

Get slot of current block.