AllProvidedReferenceScripts

scalus.cardano.ledger.utils.AllProvidedReferenceScripts

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

Returns all reference scripts provided by transaction inputs and reference inputs as a non-distinct sequence.

Returns all reference scripts provided by transaction inputs and reference inputs as a non-distinct sequence.

Unlike allProvidedReferenceScripts, this method preserves duplicates. Each occurrence of a script in the UTxO set is counted separately, which is important for fee calculation where the same script referenced multiple times counts towards the minFee calculation for each reference.

Value parameters

transaction

the transaction to analyze

utxos

the UTxO set containing the referenced outputs

Attributes

Returns

Either a BadInputsUTxOException or BadReferenceInputsUTxOException if any input is missing from the UTxO set, or a sequence containing all reference scripts (with duplicates preserved)