Skip to main content
Version: 0.2.38

sdk.provider.evaluatetransaction

Home > @blaze-cardano/sdk > Provider > evaluateTransaction

Provider.evaluateTransaction() method

Evaluates the transaction by calculating the exunits for each redeemer, applying them, and returning the redeemers. This makes a remote call to the provider in most cases, however may use a virtual machine in some implementations.

Signature:

abstract evaluateTransaction(tx: Transaction, additionalUtxos: TransactionUnspentOutput[]): Promise<Redeemers>;

Parameters

Parameter

Type

Description

tx

Transaction

The transaction to evaluate.

additionalUtxos

TransactionUnspentOutput[]

The additional unspent outputs to consider.

Returns:

Promise<Redeemers>

{Promise} - The redeemers with applied exunits.