Skip to main content

Overview

The simulation endpoint is TxShield’s core. A single POST request runs three parallel checks against live chain state and returns a unified risk report:
  • Transaction Simulation — exact token and ETH deltas, tax, gas, reentrancy
  • Bytecode Analysis — static analysis for kill switches, proxies, and malicious patterns
  • Transaction History — activity pulse showing whether the token is alive or dead
Use this before presenting any swap or interaction to your user.

Endpoint

POST /api/simulate/execute-simulation

Request

Headers

Body

Parameters

Supported Chain IDs


Response


Response Fields Explained

Top Level


checks.simulateResult


checks.byteCodeResult


checks.transactionHistoryResult


Important: Read All Three Results

A token can simulate cleanly — isHoneypot: false, success: true — and still be dangerous. Always check byteCodeResult.trustStatus and byteCodeResult.riskFlags independently. A Kill Switch or Proxy pattern in the bytecode means the contract rules can change after you trade.
The example response above is a real case — simulation passed, but bytecode flagged a Kill Switch and Hidden Logic. A user trusting only isHoneypot would have traded into a Critical Risk contract.

Code Examples


Error Responses


Honeypot Detection

Run a dedicated honeypot check with time-travel analysis.

Authentication

How to generate and use your API key.