Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Conveniences for working with a local cardano-node
Synopsis
- loadConnectInfo ∷ (MonadError InitialLedgerStateError m, MonadIO m) ⇒ FilePath → FilePath → m (LocalNodeConnectInfo CardanoMode, Env)
- queryEraHistory ∷ LocalNodeConnectInfo CardanoMode → IO (EraHistory CardanoMode)
- querySystemStart ∷ LocalNodeConnectInfo CardanoMode → IO SystemStart
- queryLocalState ∷ QueryInMode CardanoMode b → LocalNodeConnectInfo CardanoMode → IO b
- queryTip ∷ LocalNodeConnectInfo CardanoMode → IO ChainPoint
- queryProtocolParameters ∷ LocalNodeConnectInfo CardanoMode → IO (BundledProtocolParameters BabbageEra)
Documentation
∷ (MonadError InitialLedgerStateError m, MonadIO m) | |
⇒ FilePath | Node config file (JSON) |
→ FilePath | Node socket |
→ m (LocalNodeConnectInfo CardanoMode, Env) |
Load the node config file and create LocalNodeConnectInfo
and Env
values that can be used to talk to the node.