TarifsGitHubTableau de bord

TRON

wallet/getblockbalance25 crédits

Returns the TRX balance changes of every transaction in a block.

Réseau: tron

Paramètres

NomTypeDescription
hashstringBlock hash (id); must match number.
numbernumberBlock number; must match hash.
visiblebooleantrue = base58 addresses (in the request and the response); false (default) = hex addresses. (facultatif)

Valeur renvoyée

Type

Object

Object with timestamp (ms), block_identifier (hash, number) and transaction_balance_trace: per transaction transaction_identifier, type, status and operation[] (operation_identifier, address, amount in sun, negative = balance decreased). Needs storage.balance.history.lookup on the node.

Exemples de code

curl 'https://holy-burned-sky-tron-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7/wallet/getblockbalance' \
  -X POST \
  -H 'content-type: application/json' \
  -d '{
  "hash": "<block hash>",
  "number": 1000000,
  "visible": true
}'