---
title: "Simulate Transaction"
method: POST
path: "/defi/v1/chain/simulatetransaction"
tags: ["chain"]
---

# Simulate Transaction

`POST /defi/v1/chain/simulatetransaction`

## Request

- Base URL: `https://svc.blockdaemon.com`
- URL: `https://svc.blockdaemon.com/defi/v1/chain/simulatetransaction`
- Auth: API key in header `X-API-Key`

Simulates a signed transaction in the current network context without broadcasting, returning an encoded outcome, potential events, and resource cost metrics (CPU, memory). The response also includes the minimum resource fee and ledger number, enabling developers to verify, optimize, and confirm transaction behavior before committing funds.

> 💡 
**Compute Unit Value:** `50` (Fixed)

## Request body

- ChainSimulatetransactionRequest: The request body for a /defi/v1/chain/simulatetransaction
  - `chainId` '1500' | '1501': The unique ID to direct queries or transactions to the correct blockchain. Find more [here](https://docs.blockdaemon.com/docs/defi-api-supported-protocols#supported-chains).
  - `chainSymbol` string: The abbreviated chain name for queries or transactions.
  - `rawTransaction` string, required: A signed Stellar transaction, serialized as a base64 string.

## Response `200`

Successful response

- object
  - `status` integer
  - `msg` string
  - `data` object

---

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