blockfrost-api-0.8.0.0: API definitions for blockfrost.io
Safe HaskellSafe-Inferred
LanguageHaskell2010

Blockfrost.Types.Cardano.Blocks

Description

Information about produced blocks

Synopsis

Documentation

data Block Source #

Information about a block

Constructors

Block 

Fields

Instances

Instances details
FromJSON Block Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Blocks

ToJSON Block Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Blocks

Generic Block Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Blocks

Associated Types

type Rep Block :: Type -> Type #

Methods

from :: Block -> Rep Block x #

to :: Rep Block x -> Block #

Show Block Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Blocks

Methods

showsPrec :: Int -> Block -> ShowS #

show :: Block -> String #

showList :: [Block] -> ShowS #

Eq Block Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Blocks

Methods

(==) :: Block -> Block -> Bool #

(/=) :: Block -> Block -> Bool #

ToSample Block Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Blocks

Methods

toSamples :: Proxy Block -> [(Text, Block)] #

HasConfirmations Block Integer Source # 
Instance details

Defined in Blockfrost.Lens

a ~ Maybe Lovelaces => HasFees Block a Source # 
Instance details

Defined in Blockfrost.Lens

Methods

fees :: Lens' Block a Source #

HasHash Block BlockHash Source # 
Instance details

Defined in Blockfrost.Lens

a ~ Maybe Lovelaces => HasOutput Block a Source # 
Instance details

Defined in Blockfrost.Lens

Methods

output :: Lens' Block a Source #

HasSize Block Integer Source # 
Instance details

Defined in Blockfrost.Lens

HasSlotLeader Block Text Source # 
Instance details

Defined in Blockfrost.Lens

HasTime Block POSIXTime Source # 
Instance details

Defined in Blockfrost.Lens

HasTxCount Block Integer Source # 
Instance details

Defined in Blockfrost.Lens

HasBlockVrf Block (Maybe Text) Source # 
Instance details

Defined in Blockfrost.Lens

HasEpoch Block (Maybe Epoch) Source # 
Instance details

Defined in Blockfrost.Lens

HasEpochSlot Block (Maybe Integer) Source # 
Instance details

Defined in Blockfrost.Lens

HasHeight Block (Maybe Integer) Source # 
Instance details

Defined in Blockfrost.Lens

HasNextBlock Block (Maybe BlockHash) Source # 
Instance details

Defined in Blockfrost.Lens

HasOpCert Block (Maybe Text) Source # 
Instance details

Defined in Blockfrost.Lens

HasOpCertCounter Block (Maybe Quantity) Source # 
Instance details

Defined in Blockfrost.Lens

HasPreviousBlock Block (Maybe BlockHash) Source # 
Instance details

Defined in Blockfrost.Lens

HasSlot Block (Maybe Slot) Source # 
Instance details

Defined in Blockfrost.Lens

type Rep Block Source # 
Instance details

Defined in Blockfrost.Types.Cardano.Blocks

type Rep Block = D1 ('MetaData "Block" "Blockfrost.Types.Cardano.Blocks" "blockfrost-api-0.8.0.0-9jPVyZRQiil83CVj7Bn3JQ" 'False) (C1 ('MetaCons "Block" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "_blockTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 POSIXTime) :*: S1 ('MetaSel ('Just "_blockHeight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer))) :*: (S1 ('MetaSel ('Just "_blockHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BlockHash) :*: S1 ('MetaSel ('Just "_blockSlot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Slot)))) :*: ((S1 ('MetaSel ('Just "_blockEpoch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Epoch)) :*: S1 ('MetaSel ('Just "_blockEpochSlot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer))) :*: (S1 ('MetaSel ('Just "_blockSlotLeader") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "_blockSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))) :*: (((S1 ('MetaSel ('Just "_blockTxCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: S1 ('MetaSel ('Just "_blockOutput") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Lovelaces))) :*: (S1 ('MetaSel ('Just "_blockFees") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Lovelaces)) :*: S1 ('MetaSel ('Just "_blockBlockVrf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "_blockOpCert") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "_blockOpCertCounter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Quantity))) :*: (S1 ('MetaSel ('Just "_blockPreviousBlock") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe BlockHash)) :*: (S1 ('MetaSel ('Just "_blockNextBlock") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe BlockHash)) :*: S1 ('MetaSel ('Just "_blockConfirmations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))))))

Orphan instances

FromJSON (Address, [TxHash]) Source # 
Instance details

ToJSON (Address, [TxHash]) Source # 
Instance details