Skip to main content
Version: Next

emulator.emulator.lookupscript

Home > @blaze-cardano/emulator > Emulator > lookupScript

Emulator.lookupScript() method

Locates the synthetic script reference UTxO for the provided script.

Signature:

lookupScript(script: Script): TransactionUnspentOutput;

Parameters

Parameter

Type

Description

script

Script

Script whose published reference should be retrieved.

Returns:

TransactionUnspentOutput

{TransactionUnspentOutput} The reference UTxO containing the script.

Exceptions

{Error} When the script has not been published.