---
title: "Simulate a Solana transaction"
method: POST
path: "/sdk/{environmentId}/solana/simulateTransaction"
tags: ["SDK"]
---

# Simulate a Solana transaction

`POST /sdk/{environmentId}/solana/simulateTransaction`

## Path parameters

- `environmentId` string, required

## Request body

- SimulateSVMTransactionRequest
  - `chain` string, required — The Solana chainId to simulate the transaction on
  - `transactions` string[], required
  - `accountAddress` string, required — Valid Solana wallet address, must be a 44-character string using base58 characters
  - `domain` string
  - `method` string, required

## Response `200`

Simulated transaction result

- SimulateTransactionResponse
  - `inAssets` AssetDiff[], required
    - `asset` Asset, required
      - `address` union, required
        - string — Valid blockchain wallet address, must be an alphanumeric string without any special characters
        - string — Valid Solana wallet address, must be a 44-character string using base58 characters
      - `chainId` number
      - `chainName` string, required
      - `decimals` number, required
      - `logoUrl` string, required
      - `name` string, required
      - `symbol` string, required
      - `type` string, required
    - `transferIn` AssetTransfer[], required
      - `rawValue` string
      - `summary` string
      - `usdPrice` string
      - `value` string
    - `transferOut` AssetTransfer[], required
      - `rawValue` string
      - `summary` string
      - `usdPrice` string
      - `value` string
  - `outAssets` AssetDiff[], required
    - `asset` Asset, required
      - `address` union, required
        - string — Valid blockchain wallet address, must be an alphanumeric string without any special characters
        - string — Valid Solana wallet address, must be a 44-character string using base58 characters
      - `chainId` number
      - `chainName` string, required
      - `decimals` number, required
      - `logoUrl` string, required
      - `name` string, required
      - `symbol` string, required
      - `type` string, required
    - `transferIn` AssetTransfer[], required
      - `rawValue` string
      - `summary` string
      - `usdPrice` string
      - `value` string
    - `transferOut` AssetTransfer[], required
      - `rawValue` string
      - `summary` string
      - `usdPrice` string
      - `value` string
  - `counterparties` union[]
    - union
      - string — Valid blockchain wallet address, must be an alphanumeric string without any special characters
      - string — Valid Solana wallet address, must be a 44-character string using base58 characters
  - `priceData` PriceData, required
    - `nativeTokenUsdPrice` number
  - `showTotalFiat` boolean, required
  - `validation` BlockaidValidation
    - `result` 'Benign' | 'Warning' | 'Malicious' | 'Error', required
    - `description` string
    - `reason` string, required
    - `classification` string
  - `assetExposures` AssetExposure[]
    - `asset` Asset, required
      - `address` union, required
        - string — Valid blockchain wallet address, must be an alphanumeric string without any special characters
        - string — Valid Solana wallet address, must be a 44-character string using base58 characters
      - `chainId` number
      - `chainName` string, required
      - `decimals` number, required
      - `logoUrl` string, required
      - `name` string, required
      - `symbol` string, required
      - `type` string, required
    - `spenderToInfo` object, required

## Other responses

- `400` — Bad Request
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.net/dynamic/apis/dashboard-api.md) · [All operations](https://skmtc.net/dynamic/apis/dashboard-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dynamic/dashboard-api/versions/aac826315d90/schema)
