---
title: TransactionExecutionResult
description: TransactionExecutionResult captures execution outcomes.
source_url:
  html: https://thru.org/docs/api-ref/grpc/messages/thru/core/v1/transaction-execution-result/
  md: https://thru.org/docs/api-ref/grpc/messages/thru/core/v1/transaction-execution-result.md
---

# TransactionExecutionResult

TransactionExecutionResult captures execution outcomes.

**Package:** `thru.core.v1`

## Fields

| Field | Type | # | Description |
| - | - | - | - |
| `consumed_compute_units` | `uint32` | 1 · optional | |
| `consumed_memory_units` | `uint32` | 2 · optional | |
| `consumed_state_units` | `uint32` | 3 · optional | |
| `user_error_code` | `uint64` | 4 · optional | |
| `vm_error` | [`TransactionVmError`](https://thru.org/docs/api-ref/grpc/messages/thru/core/v1/transaction-vm-error.md) | 5 · optional | |
| `execution_result` | `uint64` | 6 · optional | |
| `pages_used` | `uint32` | 7 · optional | |
| `events_count` | `uint32` | 8 · optional | |
| `events_size` | `uint32` | 9 · optional | |
| `readwrite_accounts` | repeated [`thru.common.v1.Pubkey`](https://thru.org/docs/api-ref/grpc/messages/thru/common/v1/pubkey.md) | 10 · optional | |
| `readonly_accounts` | repeated [`thru.common.v1.Pubkey`](https://thru.org/docs/api-ref/grpc/messages/thru/common/v1/pubkey.md) | 11 · optional | |
| `events` | repeated [`TransactionEvent`](https://thru.org/docs/api-ref/grpc/messages/thru/core/v1/transaction-event.md) | 12 · optional | |
| `error_program_acc_idx` | `uint32` | 13 · optional | Account index of the program that caused the error (revert, fault, etc.). Only meaningful when vm\_error indicates a failure. |
