whisky
Github
  • whisky
  • WASM - whisky-js
  • Tx Builder
    • Getting Started
      • Lock Fund
      • Unlock Fund
      • Mint Tokens
      • Delegate Stake
      • Complex Transaction
    • Service Integration
  • Services
    • Providers
      • Fetcher
      • Evaluator
      • Submitter
Powered by GitBook
On this page
  • Endpoints
  • evaluate_tx
  1. Services
  2. Providers

Evaluator

evaluator implements the following interface:

#[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

PreviousFetcherNextSubmitter

Last updated 1 month ago