Safe Haskell | None |
---|---|
Language | Haskell2010 |
Block queries
Synopsis
- getLatestBlock :: MonadBlockfrost m => m Block
- getLatestBlockTxs :: MonadBlockfrost m => m [TxHash]
- getLatestBlockTxs' :: MonadBlockfrost m => Paged -> SortOrder -> m [TxHash]
- getBlock :: MonadBlockfrost m => Either Integer BlockHash -> m Block
- getBlockSlot :: MonadBlockfrost m => Slot -> m Block
- getBlockEpochSlot :: MonadBlockfrost m => Epoch -> Slot -> m Block
- getNextBlocks :: MonadBlockfrost m => Either Integer BlockHash -> m [Block]
- getNextBlocks' :: MonadBlockfrost m => Either Integer BlockHash -> Paged -> m [Block]
- getPreviousBlocks :: MonadBlockfrost m => Either Integer BlockHash -> m [Block]
- getPreviousBlocks' :: MonadBlockfrost m => Either Integer BlockHash -> Paged -> m [Block]
- getBlockTxs :: MonadBlockfrost m => Either Integer BlockHash -> m [TxHash]
- getBlockTxs' :: MonadBlockfrost m => Either Integer BlockHash -> Paged -> SortOrder -> m [TxHash]
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 #
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
.