Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Add Support for eth_simulateV1 Method in Tron JSON-RPC

未關閉
#6,199 18 則留言 9 個 reaction 已指派 1 人 在 GitHub 檢視

維護者通常 1 天內回覆

@yanghang8612 已經在處理了。

開始於 2025年5月29日。

  • #6785 來自 @APshenkin —— 未關閉

評估

這個 Issue 還沒有評估資料。

描述

need:archive topic:api topic:archive node topic:vm type:feature

Background

Currently, Ethereum provides the eth_simulateV1 method, which allows developers to simulate transactions before broadcasting them. This is useful for estimating gas usage, detecting potential reverts, and debugging smart contract interactions. However, Tron Protocol does not currently support this method, which limits the ability of developers to perform pre-execution checks efficiently.

Rationale

Why should this feature exist?

  • Enhances developer experience by allowing transaction simulation before execution.
  • Reduces the risk of failed transactions due to insufficient resources or contract failures.
  • Aligns Tron’s JSON-RPC API with Ethereum’s, improving compatibility for developers building cross-chain applications.

What are the use-cases?

  • Gas and Energy Estimation: Developers can estimate energy consumption and fees before executing a transaction.
  • Smart Contract Debugging: Allows developers to test interactions with contracts without submitting real transactions.
  • Transaction Outcome Prediction: Helps applications check whether a transaction will succeed before submitting it to the network.

Specification

The eth_simulateV1 method should be implemented in the Tron JSON-RPC API, following Ethereum’s standard behavior. The method should:

  • Accept transaction input parameters similar to eth_call.
  • Return execution results, including status, logs, and estimated energy used.
  • Handle different contract call scenarios, including internal calls and delegate calls.
  • Provide error messages if the transaction would fail.

Scope Of Impact

  • Requires changes to the Tron JSON-RPC API.
  • May require modifications to the execution engine to provide accurate simulation results.
  • No backward compatibility issues, as this is a new method.

Status

Blocked by:

  • #6289
主要語言
Java
星號
4.2k
分支
1.8k
平均合併
3 天 21 小時
30 天內合併 PR
13

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

tronprotocol/java-tron 的其他 Issue

查看 tronprotocol/java-tron 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。