hydra-cardano-api-0.20.0: A Haskell API for Cardano, tailored to the Hydra project.
Safe HaskellSafe-Inferred
LanguageGHC2021

Hydra.Cardano.Api.TxIn

Synopsis

Extras

mkTxIn :: Tx era -> Word -> TxIn Source #

Create a TxIn (a.k.a UTXO) from a transaction and output index.

withWitness :: TxIn -> (TxIn, BuildTxWith BuildTx (Witness WitCtxTxIn Era)) Source #

Attach some verification-key witness to a TxIn.

txIns' :: Tx era -> [TxIn] Source #

Access inputs of a transaction, as an ordered list.

txInputSet :: Tx era -> Set TxIn Source #

Access inputs of a transaction, as an ordered set.

Type Conversions

fromLedgerTxIn :: TxIn StandardCrypto -> TxIn Source #

Convert a cardano-ledger TxIn into a cardano-api TxIn

toLedgerTxIn :: TxIn -> TxIn StandardCrypto Source #

Convert a cardano-api TxIn into a cardano-ledger TxIn

fromPlutusTxOutRef :: TxOutRef -> TxIn Source #

Convert a plutus' TxOutRef into a cardano-api TxIn

toPlutusTxOutRef :: TxIn -> TxOutRef Source #

Convert a cardano-api TxIn into a plutus TxOutRef.

Arbitrary values

genTxIn :: Gen TxIn Source #

A more random generator than the 'Arbitrary TxIn' from cardano-ledger. NOTE: This is using the Cardano ledger's deserialization framework using the latest protocol version via maxBound.

Orphan instances

Arbitrary TxIn Source # 
Instance details

Methods

arbitrary :: Gen TxIn #

shrink :: TxIn -> [TxIn] #