blockfrost-client-0.9.0.0: blockfrost.io basic client
Safe HaskellSafe-Inferred
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 => m [TxHash] Source #

Return the transactions within the latest block.

Queries 100 entries. To query all entries use allPages with principled variant of this function (suffixed with ') that accepts Paged argument.

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.

Queries 100 entries. To query all entries use allPages with principled variant of this function (suffixed with ') that accepts Paged argument.

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.

Queries 100 entries. To query all entries use allPages with principled variant of this function (suffixed with ') that accepts Paged argument.

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.

Queries 100 entries. To query all entries use allPages with principled variant of this function (suffixed with ') that accepts Paged argument.

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.

Queries 100 entries. To query all entries use allPages with principled variant of this function (suffixed with ') that accepts Paged argument.