# Evaluator

`evaluator` implements the following interface:

```rust
#[async_trait]
pub trait Evaluator: Send {
    async fn evaluate_tx(
        &self,
        tx_hex: &str,
        inputs: &[UTxO],
        additional_txs: &[String],
        network: &Network,
        slot_config: &SlotConfig,
    ) -> Result<Vec<Action>, WError>;
}
```

## Endpoints

### evaluate\_tx

* `tx_hex` - The transaction hex for evaluation.
* `inputs` - The extra input information provided for consideration (useful for offline evaluator or transaction chaining)
* `additional_txs` - The extra transaction (in hex) for parsing input information provided for consideration (useful for offline evaluator or transaction chaining)
* `network` - Cardano blockchain network
* `slot_config` - Useful for offline evaluation


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://whisky.sidan.io/services/providers/evaluator.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
