gettransactioninfobyid

TRONC1

Returns execution results for a transaction — energy and bandwidth consumed, logs and status. The TRON analogue of a receipt.

Endpoint
POST https://api.1st-node.com/v1/tron/wallet/gettransactioninfobyid

Parameters

NameTypeDescription
valuestringThe transaction id (hash).

Returns

object — receipt with energy_usage, logs and result.

Request

curl https://api.1st-node.com/v1/tron/wallet/gettransactioninfobyid \
  -H "Authorization: Bearer $ONE_KEY" \
  -H "content-type: application/json" \
  -d '{ "value": "d5ec749ec…" }'
{ "value": "d5ec749ec…" }

Response

{ "id": "d5ec749ec…", "receipt": { "energy_usage_total": 31895 }, "log": [] }
More transactions methods on TRON

TRON API

常见问题

How do I see energy used by a tx?

The receipt.energy_usage_total field reports the energy consumed.

充值、拿密钥、上线。

自助开通。支持加密货币或银行卡。按额度计费——重型原语更贵,简单调用很便宜。

获取 API 密钥