Safe Haskell | Safe-Inferred |
---|---|
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]
- getBlockAffectedAddresses' :: MonadBlockfrost m => Either Integer BlockHash -> Paged -> m [(Address, [TxHash])]
- getBlockAffectedAddresses :: MonadBlockfrost m => Either Integer BlockHash -> m [(Address, [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 #
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 #
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 #
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 #
getBlockTxs' :: MonadBlockfrost m => Either Integer BlockHash -> Paged -> SortOrder -> m [TxHash] Source #
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 #