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キーを取得