query.blockfrost.evaluatetransaction
Home > @blaze-cardano/query > Blockfrost > evaluateTransaction
Blockfrost.evaluateTransaction() method
This method evaluates how much execution units a transaction requires.
Signature:
evaluateTransaction(tx: Transaction, additionalUtxos?: TransactionUnspentOutput[]): Promise<Redeemers>;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| tx | Transaction | The Transaction | 
| additionalUtxos | TransactionUnspentOutput[] | (Optional) Optional utxos to be added to the evaluation. | 
Returns:
Promise<Redeemers>
A Promise that resolves to a Redeemers type
Remarks
Optionally, additional outputs can be provided. These are added to the evaluation without checking for their presence on-chain. This is useful when performing transaction chaining, where some outputs used as inputs to a transaction will have not yet been submitted to the network.