---
title: "GetLatestTransactionSimulation"
method: GET
path: "/v2/vaults/{vault_id}/transactions/{transaction_id}/simulations/latest"
tags: ["Transactions"]
---

# GetLatestTransactionSimulation

`GET /v2/vaults/{vault_id}/transactions/{transaction_id}/simulations/latest`

## Request

- Base URL: `https://api.utila.io`
- URL: `https://api.utila.io/v2/vaults/{vault_id}/transactions/{transaction_id}/simulations/latest`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/utila/apis/utila-api/docs/v2/vaults/:vault_id/transactions/:transaction_id/simulations/latest/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `vault_id` string, required
- `transaction_id` string, required

## Query parameters

- `includeReferencedResources` boolean

## Response `200`

A successful response.

- V2GetLatestTransactionSimulationResponse
  - `transactionSimulation` V2TransactionSimulation
    - `name` string: The resource name of the transaction simulation. Format: `vaults/{vault_id}/transactionSimulations/{simulation_id}`.
    - `addressBalanceChanges` V2AddressBalanceChanges[]: The balance changes that would occur if the transaction will be executed.
      - `address` Apiv2Address
        - `value` string: The actual address.
        - `infoRef` string: If it's an address in the vault (e.g., a wallet address), a reference to address information will be listed here. Address information can be fetched from `ReferencedAddressesInfo` map with the reference as the key. Will be populated only if `includeReferencedResources` is set to `true`.
        - `private` boolean: True when the address is redacted because it belongs to a private Aleo record. When set, `value` is empty.
      - `balanceChanges` V2BalanceChange[]: The balance changes for the address.
        - `amount` string: The value of the balance change in token base units. For example: -1000000000.
        - `amountAbs` string: The absolute value of the balance change in token base units. For example: 1000000000.
        - `negative` boolean: Whether the balance change is negative. For example: true if the balance change is -1000000000.
        - `asset` string: The asset of the change. Can be a token that is not tracked by Utila.
        - `price` V2ConvertedValue: A message representing a converted value.
          - `amount` string: The amount in USD.
          - `currencyCode` string: The currency code of the amount. Always USD.
        - `unknownAmount` boolean: Whether the amount of this balance change is unknown to Utila. Set only for confidential token transfers whose encrypted amount could not be decrypted. When true, `amount` and `amount_abs` are reported as `0`; `negative` still reports the direction.
    - `simulationTime` string, date-time: The time at which the simulation was run.
    - `error` GooglerpcStatus: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
      - `code` integer: The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
      - `message` string: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
      - `details` ProtobufAny[]: A list of messages that carry the error details. There is a common set of message types for APIs to use.
        - `@type` string: A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. This string must contain at least one "/" character. The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading "." is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme `http`, `https`, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows: * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one. Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics.
  - `referencedResources` object: A mapping of the referenced resources in the message. The key is the resource name and the value is the corresponding resource.
  - `referencedAddressesInfo` object: A mapping of the referenced addresses in the message. The key is the address and the value is the corresponding address info.

## Changes

- **2026-11-03** `c4a910d79740`: 1 breaking, 4 warning, 93 info
  - the response property `referencedResources/additionalProperties/addressBookEntry/allOf[#/components/schemas/v2AddressBookEntry]/network` became optional for the status `200`
  - removed the optional property `referencedResources/additionalProperties/transaction/allOf[#/components/schemas/v2Transaction]/aleoTransaction/allOf[#/components/schemas/TransactionAleoTransaction]/operations/items/transition` from the response with the `200` status
  - removed the optional property `referencedResources/additionalProperties/transaction/allOf[#/components/schemas/v2Transaction]/gasStationOrder` from the response with the `200` status
  - added the new `ERC7984` enum value to the `referencedResources/additionalProperties/asset/allOf[#/components/schemas/v2Asset]/tokenInfo/allOf[#/components/schemas/v2AssetTokenInfo]/standard/allOf[#/components/schemas/AssetTokenInfoStandardEnum]/` response property for the response status `200`
  - …94 more

[Operation history](https://skmtc.dev/utila/apis/utila-api/changes/v2/vaults/:vault_id/transactions/:transaction_id/simulations/latest/get.md)

---

[API](https://skmtc.dev/utila/apis/utila-api.md) - [All operations](https://skmtc.dev/utila/apis/utila-api/llms.txt) - [OpenAPI document](https://skmtc.dev/utila/apis/utila-api/revisions/c4a910d79740?raw)
