cardano-sl-0.4.3: Cardano SL main implementation

Safe HaskellNone
LanguageHaskell2010

Pos.Client.Txp.History

Contents

Synopsis

Documentation

History derivation

getRelatedTxs :: Monad m => Address -> [(WithHash Tx, TxWitness, TxDistribution)] -> TxSelectorT m [TxHistoryEntry] Source #

Select transactions related to given address. Bool indicates whether the transaction is outgoing (i. e. is sent from given address)

deriveAddrHistory :: Monad m => Address -> [Block ssc] -> TxSelectorT m [TxHistoryEntry] Source #

Given a full blockchain, derive address history and Utxo TODO: Such functionality will still be useful for merging blockchains when wallet state is ready, but some metadata for Tx will be required.