Blockfrost.Cardano.Blocks (Blockfrost v0.1.1) View Source
Functions for to the /blocks namespace in the Blockfrost API
Link to this section Summary
Functions
Return the transactions within the block.
Return the latest block available to the backends, also known as the tip of the blockchain
Return the transactions within the latest block.
Return the list of blocks following a specific block.
Return the list of blocks preceding a specific block.
Return the content of a requested block.
Return the content of a requested block for a specific slot.
Return the content of a requested block for a specific slot in an epoch.
Link to this section Functions
Specs
block_transactions(Blockfrost.t(), String.t(), Keyword.t()) :: {:ok, Blockfrost.Response.BlockTransactionsResponse.t()} | Blockfrost.HTTP.error_response()
Return the transactions within the block.
Supports pagination.
Specs
latest_block(Blockfrost.t(), Keyword.t()) :: {:ok, Blockfrost.Response.LatestBlockResponse.t()} | Blockfrost.HTTP.error_response()
Return the latest block available to the backends, also known as the tip of the blockchain
Specs
latest_block_transactions(Blockfrost.t(), Keyword.t()) :: {:ok, Blockfrost.Response.LatestBlockTransactionsResponse.t()} | Blockfrost.HTTP.error_response()
Return the transactions within the latest block.
Supports pagination.
Specs
listing_of_next_blocks(Blockfrost.t(), String.t(), Keyword.t()) :: {:ok, Blockfrost.Response.ListingOfNextBlocksResponse.t()} | Blockfrost.HTTP.error_response()
Return the list of blocks following a specific block.
Supports pagination.
Specs
listing_of_previous_blocks(Blockfrost.t(), String.t(), Keyword.t()) :: {:ok, Blockfrost.Response.ListingOfPreviousBlocksResponse.t()} | Blockfrost.HTTP.error_response()
Return the list of blocks preceding a specific block.
Supports pagination.
Specs
specific_block(Blockfrost.t(), String.t(), Keyword.t()) :: {:ok, Blockfrost.Response.SpecificBlockResponse.t()} | Blockfrost.HTTP.error_response()
Return the content of a requested block.
Supports pagination.
Specs
specific_block_in_slot(Blockfrost.t(), String.t(), Keyword.t()) :: {:ok, Blockfrost.Response.SpecificBlockInSlotResponse.t()} | Blockfrost.HTTP.error_response()
Return the content of a requested block for a specific slot.
specific_block_in_slot_in_epoch(name, epoch_number, slot_number, opts \\ [])
View SourceSpecs
specific_block_in_slot_in_epoch( Blockfrost.t(), String.t(), String.t(), Keyword.t() ) :: {:ok, Blockfrost.Response.SpecificBlockInSlotInEpochResponse.t()} | Blockfrost.HTTP.error_response()
Return the content of a requested block for a specific slot in an epoch.