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

Blockfrost.Client.Cardano.Blocks

Description

Block queries

Synopsis

Documentation

getLatestBlock :: BlockfrostClient Block Source #

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

getLatestBlockTxs' :: Paged -> SortOrder -> BlockfrostClient [TxHash] Source #

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

getBlock :: Either Integer BlockHash -> BlockfrostClient Block Source #

Return the content of a requested block.

getBlockSlot :: Slot -> BlockfrostClient Block Source #

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

getBlockEpochSlot :: Epoch -> Slot -> BlockfrostClient Block Source #

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

getNextBlocks :: Either Integer BlockHash -> BlockfrostClient [Block] Source #

Return the list of blocks following a specific block.

getNextBlocks' :: Either Integer BlockHash -> Paged -> BlockfrostClient [Block] Source #

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

getPreviousBlocks :: Either Integer BlockHash -> BlockfrostClient [Block] Source #

Return the list of blocks preceding a specific block.

getPreviousBlocks' :: Either Integer BlockHash -> Paged -> BlockfrostClient [Block] Source #

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

getBlockTxs :: Either Integer BlockHash -> BlockfrostClient [TxHash] Source #

Return the transactions within the block.

getBlockTxs' :: Either Integer BlockHash -> Paged -> SortOrder -> BlockfrostClient [TxHash] Source #

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