Safe Haskell | None |
---|---|
Language | Haskell2010 |
Epoch queries
Synopsis
- getLatestEpoch :: MonadBlockfrost m => m EpochInfo
- getLatestEpochProtocolParams :: MonadBlockfrost m => m ProtocolParams
- getEpoch :: MonadBlockfrost m => Epoch -> m EpochInfo
- getNextEpochs :: MonadBlockfrost m => Epoch -> m [ EpochInfo ]
- getNextEpochs' :: MonadBlockfrost m => Epoch -> Paged -> m [ EpochInfo ]
- getPreviousEpochs :: MonadBlockfrost m => Epoch -> m [ EpochInfo ]
- getPreviousEpochs' :: MonadBlockfrost m => Epoch -> Paged -> m [ EpochInfo ]
- getEpochStake :: MonadBlockfrost m => Epoch -> m [ StakeDistribution ]
- getEpochStake' :: MonadBlockfrost m => Epoch -> Paged -> m [ StakeDistribution ]
- getEpochStakeByPool :: MonadBlockfrost m => Epoch -> PoolId -> m [ StakeDistribution ]
- getEpochStakeByPool' :: MonadBlockfrost m => Epoch -> PoolId -> Paged -> m [ StakeDistribution ]
- getEpochBlocks :: MonadBlockfrost m => Epoch -> m [ BlockHash ]
- getEpochBlocks' :: MonadBlockfrost m => Epoch -> Paged -> SortOrder -> m [ BlockHash ]
- getEpochBlocksByPool :: MonadBlockfrost m => Epoch -> PoolId -> m [ BlockHash ]
- getEpochBlocksByPool' :: MonadBlockfrost m => Epoch -> PoolId -> Paged -> SortOrder -> m [ BlockHash ]
- getEpochProtocolParams :: MonadBlockfrost m => Epoch -> m ProtocolParams
Documentation
getLatestEpoch :: MonadBlockfrost m => m EpochInfo Source #
Get the information about the latest, therefore current, epoch.
getLatestEpochProtocolParams :: MonadBlockfrost m => m ProtocolParams Source #
Get the protocol parameters for the latest epoch.
getEpoch :: MonadBlockfrost m => Epoch -> m EpochInfo Source #
Get the information about specific epoch.
getNextEpochs :: MonadBlockfrost m => Epoch -> m [ EpochInfo ] Source #
Return the list of epochs following a specific epoch.
getNextEpochs' :: MonadBlockfrost m => Epoch -> Paged -> m [ EpochInfo ] Source #
Return the list of epochs following a specific epoch.
Allows custom paging using
Paged
.
getPreviousEpochs :: MonadBlockfrost m => Epoch -> m [ EpochInfo ] Source #
Return the list of epochs preceding a specific epoch.
getPreviousEpochs' :: MonadBlockfrost m => Epoch -> Paged -> m [ EpochInfo ] Source #
Return the list of epochs preceding a specific epoch.
Allows custom paging using
Paged
.
getEpochStake :: MonadBlockfrost m => Epoch -> m [ StakeDistribution ] Source #
Return the active stake distribution for the specified epoch.
getEpochStake' :: MonadBlockfrost m => Epoch -> Paged -> m [ StakeDistribution ] Source #
Return the active stake distribution for the specified epoch.
Allows custom paging using
Paged
.
getEpochStakeByPool :: MonadBlockfrost m => Epoch -> PoolId -> m [ StakeDistribution ] Source #
Return the active stake distribution for the epoch specified by stake pool.
getEpochStakeByPool' :: MonadBlockfrost m => Epoch -> PoolId -> Paged -> m [ StakeDistribution ] Source #
Return the active stake distribution for the epoch specified by stake pool.
Allows custom paging using
Paged
.
getEpochBlocks :: MonadBlockfrost m => Epoch -> m [ BlockHash ] Source #
Return the blocks minted for the epoch specified.
getEpochBlocks' :: MonadBlockfrost m => Epoch -> Paged -> SortOrder -> m [ BlockHash ] Source #
Return the blocks minted for the epoch specified.
Allows custom paging and ordering using
Paged
and
SortOrder
.
getEpochBlocksByPool :: MonadBlockfrost m => Epoch -> PoolId -> m [ BlockHash ] Source #
Return the block minted for the epoch specified by stake pool.
getEpochBlocksByPool' :: MonadBlockfrost m => Epoch -> PoolId -> Paged -> SortOrder -> m [ BlockHash ] Source #
Return the block minted for the epoch specified by stake pool.
Allows custom paging and ordering using
Paged
and
SortOrder
.
getEpochProtocolParams :: MonadBlockfrost m => Epoch -> m ProtocolParams Source #
Return the protocol parameters for the specified epoch.