packages feed

blockfrost-api-0.1.0.0: src/Blockfrost/API/Cardano/Ledger.hs

-- | Cardano Ledger endpoints

{-# OPTIONS_HADDOCK hide #-}

module Blockfrost.API.Cardano.Ledger
  where

import Servant.API
import Servant.API.Generic

import Blockfrost.Types.Cardano.Genesis

data LedgerAPI route =
  LedgerAPI
    {
      _genesis
        :: route
        :- Summary "Blockchain genesis"
        :> Description "Return the information about blockchain genesis."
        :> Get '[JSON] Genesis
    } deriving (Generic)