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