Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
API for wallet UTxOs
Synopsis
- type API = ("healthcheck" :> (Description "Is the server alive?" :> Get '[JSON] NoContent)) :<|> ("utxos" :> Get '[JSON] (UtxoSet CtxTx ()))
- getHealth ∷ ClientEnv → IO (Either ClientError NoContent)
- getUTxOs ∷ ClientEnv → IO (Either ClientError (UtxoSet CtxTx ()))
- startServer ∷ TVar WalletState → Int → IO ()