iota_graphql_rpc/types/
execution_result.rs

1// Copyright (c) Mysten Labs, Inc.
2// Modifications Copyright (c) 2024 IOTA Stiftung
3// SPDX-License-Identifier: Apache-2.0
4
5use async_graphql::*;
6
7use crate::types::transaction_block_effects::TransactionBlockEffects;
8
9/// The result of an execution, including errors that occurred during said
10/// execution.
11#[derive(SimpleObject, Clone)]
12pub(crate) struct ExecutionResult {
13    /// The errors field captures any errors that occurred during execution
14    pub errors: Option<Vec<String>>,
15
16    /// The effects of the executed transaction. Since the transaction was just
17    /// executed and not indexed yet, fields including `balance_changes`,
18    /// `timestamp` and `checkpoint` are not available.
19    pub effects: TransactionBlockEffects,
20}