> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tenderly.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Simulations 概览

> 通过 API 或 RPC 模拟单笔或捆绑交易，获取解码后的调用追踪、精确的 gas 估算、余额变化等信息。

交易模拟（Transaction Simulations）让您可以在交易真正上链执行之前，准确预测其结果。Tenderly 使您能够在一处对 [104 个受支持的网络](/platform/supported-networks) 中的任意一个运行模拟。

Tenderly 在一个复刻真实区块链的虚拟环境中模拟交易。这确保您始终获得最准确的模拟结果：**100% 精准的 gas 使用明细**、**资产变动**、**余额变化**、**存储更新**，以及完整的**解码后交易追踪**。

<CardGroup cols={3}>
  <Card title="通过 RPC 模拟" href="/simulations/quickstart#rpc-simulations-quickstart">
    当您需要将区块链访问与模拟能力结合使用时，选择通过 RPC 进行模拟。
  </Card>

  <Card title="通过 API 模拟" href="/simulations/single-simulations#simulate-via-api">
    使用标准 REST 端点，将模拟功能无缝集成到您的 dapp 或钱包中。
  </Card>

  <Card title="Tenderly SDK" href="/platform/sdk/introduction">
    Tenderly SDK 提供了便捷的工具，帮助您快速将模拟功能加入到 dapp 或钱包中。
  </Card>
</CardGroup>

完整列表请参阅[受支持的网络](/platform/supported-networks)。

## 功能

了解如何通过 API 或 RPC 模拟单笔和捆绑交易。

<CardGroup cols={2}>
  <Card title="单笔交易模拟" href="/simulations/single-simulations">
    将模拟集成到您的 dapp 中，让用户可以在不冒真实资产风险、也不花费 gas 费的情况下预览交易结果。
  </Card>

  <Card title="捆绑交易模拟" href="/simulations/bundled-simulations">
    一次性模拟捆绑交易，测试所有相互依赖的交易的结果。捆绑模拟非常适合治理提案或策略测试。
  </Card>
</CardGroup>

## 使用场景

* [**资产与余额变化**](/simulations/asset-balance-changes)：获取即将发生的所有余额与资产变化的确切美元价值。
* [**Gas 估算**](/simulations/gas-estimation)：在发送交易之前准确预测 gas 费用。
* [**状态覆盖**](/simulations/state-overrides)：修改时间戳、合约数据等区块链状态，以测试不同的场景。
* [**预览交易结果**](/simulations/transaction-preview)：识别并修复可能导致交易失败的问题。
* **访问列表**：创建交易将访问的地址与存储槽列表。
* **人类可读的错误信息**：将复杂的错误解码为易于理解的说明。

## 资源

<CardGroup cols={3}>
  <Card title="快速开始" icon="play" href="/simulations/quickstart">
    了解将模拟集成到 dapp 或钱包中的最快方法。
  </Card>

  <Card title="身份认证" icon="key" href="/platform/account/projects/api-tokens">
    了解如何配置并认证对 API 和 RPC 的访问。
  </Card>

  <Card title="指南" icon="file-code" href="/simulations/overview">
    浏览我们不断增长的交易模拟集成指南库。
  </Card>

  <Card title="API 参考" icon="brackets-curly" href="/api-reference">
    熟悉所有 API 模拟端点、请求及参数。
  </Card>

  <Card title="常见问题" icon="circle-question" href="/troubleshooting/simulations">
    获取关于模拟功能最常见问题的解答。
  </Card>
</CardGroup>
