blockfrost-client-0.3.0.0: blockfrost.io basic client
Safe HaskellNone
LanguageHaskell2010

Blockfrost.Client.Cardano.Blocks

Description

Block queries

Synopsis

Documentation

getLatestBlock :: MonadBlockfrost m => m Block Source #

Return the latest block available to the backends, also known as the tip of the blockchain.

getLatestBlockTxs' :: MonadBlockfrost m => Paged -> SortOrder -> m [TxHash] Source #

Return the transactions within the latest block. Allows custom paging and ordering using Paged and SortOrder.

getBlock :: MonadBlockfrost m => Either Integer BlockHash -> m Block Source #

Return the content of a requested block.

getBlockSlot :: MonadBlockfrost m => Slot -> m Block Source #

Return the content of a requested block for a specific slot.

getBlockEpochSlot :: MonadBlockfrost m => Epoch -> Slot -> m Block Source #

Return the content of a requested block for a specific slot in an epoch.

getNextBlocks :: MonadBlockfrost m => Either Integer BlockHash -> m [Block] Source #

Return the list of blocks following a specific block.

getNextBlocks' :: MonadBlockfrost m => Either Integer BlockHash -> Paged -> m [Block] Source #

Return the list of blocks following a specific block. Allows custom paging using Paged.

getPreviousBlocks :: MonadBlockfrost m => Either Integer BlockHash -> m [Block] Source #

Return the list of blocks preceding a specific block.

getPreviousBlocks' :: MonadBlockfrost m => Either Integer BlockHash -> Paged -> m [Block] Source #

Return the list of blocks preceding a specific block. Allows custom paging using Paged.

getBlockTxs :: MonadBlockfrost m => Either Integer BlockHash -> m [TxHash] Source #

Return the transactions within the block.

getBlockTxs' :: MonadBlockfrost m => Either Integer BlockHash -> Paged -> SortOrder -> m [TxHash] Source #

Return the transactions within the block. Allows custom paging and ordering using Paged and SortOrder.