blockfrost-client-0.4.0.1: blockfrost.io basic client
Safe Haskell None
Language Haskell2010

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 .

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 .

getBlockAffectedAddresses' :: MonadBlockfrost m => Either Integer BlockHash -> Paged -> m [( Address , [ TxHash ])] Source #

Return list of addresses affected in the specified block with additional information, sorted by the bech32 address, ascending. Allows custom paging using Paged .

getBlockAffectedAddresses :: MonadBlockfrost m => Either Integer BlockHash -> m [( Address , [ TxHash ])] Source #

Return list of addresses affected in the specified block with additional information, sorted by the bech32 address, ascending.