Skip to main content
POST
Request fields accept both camelCase and snake_case. See Request Field Names.
Send chain_id: "728126428" and base58 (T…, 34 characters) addresses for from / to. The service converts base58 ↔ hex internally and returns base58 — callers never see hex TRON addresses. 1 TRX = 1,000,000 sun.

Additional EvmTransaction Request Fields

TRON only, all optional. At most one stake input per transaction, and every stake input requires empty calldata ("0x" or omitted). See the Body schema below for object shapes.

Additional Response Fields

No requested_items flag needed. Empty collections are omitted rather than returned as []. See the Response schema below for object shapes. tron_fee fields: bandwidth_consumed, bandwidth_price_sun, bandwidth_covered_by ("stake" / "free" / "burn"), bandwidth_fee_sun, energy_consumed, energy_burned, energy_fee_sun, total_fee_sun. Amounts are in sun; 1 TRX = 1,000,000 sun.

Notes

  • TRC-10 transfers have no dedicated key — they appear in balance_changes with token_address set to "trc10:<id>".
  • block_height has no effect on TRON. Every TRON simulation runs against current chain state. Historical replay is not available on TRON.
  • Unstaking is two steps. freeze_balance with action: "unfreeze" moves sun into a waiting queue (14 days on mainnet) but does not make it spendable; withdraw_expire_unfreeze: true in a later transaction claims what has matured.

Headers

X-API-KEY
string
required

Your HashDit API key

Body

application/json

Transactions to simulate and which result sections to return

evm_transactions
object[]
required

Transactions to simulate, executed in order. Minimum 1. Alias transactions also accepted.

Minimum array length: 1
requested_items
object
required

Selects which sections appear in each result. Effectively required: omitting the key is rejected with 400 invalid request. Any object is accepted, including {}. {"balance_changes": true} is the normal minimum. Unset flags are off.

Response

Successful API call. A reverted transaction still returns code: "0" and status: "ok" — read exec_summary.result_code and results[i].revert.

code
string

API status code. "0" indicates the API call succeeded, including when a transaction reverted.

Example:

"0"

status
string

Request status.

Example:

"ok"

data
object