Copyright | (c) 2023 GYELD GMBH |
---|---|
License | Apache 2.0 |
Maintainer | [email protected] |
Stability | develop |
Safe Haskell | None |
Language | Haskell2010 |
GeniusYield.Providers.LiteChainIndex
Description
Synopsis
- data LCIClient
- withLCIClient ∷ LocalNodeConnectInfo CardanoMode → [ChainPoint] → (LCIClient → IO r) → IO r
- newLCIClient ∷ LocalNodeConnectInfo CardanoMode → [ChainPoint] → IO LCIClient
- closeLCIClient ∷ LCIClient → IO ()
- lciWaitUntilSlot ∷ LCIClient → GYSlot → IO GYSlot
- lciLookupDatum ∷ LCIClient → GYLookupDatum
- lciGetCurrentSlot ∷ LCIClient → IO GYSlot
- lciStats ∷ LCIClient → IO (GYSlot, Int)
Documentation
Create new LCIClient
.
Use withLCIClient
if possible.
closeLCIClient ∷ LCIClient → IO () #
Close (destroy) LCIClient
.
lciGetCurrentSlot ∷ LCIClient → IO GYSlot #
This is not good gyGetCurrentSlot
provider as it might lag
plenty behind the current slot of local node.