TRON
wallet/getblockbalance25 kredi
Returns the TRX balance changes of every transaction in a block.
Parametreler
| Ad | Tür | Açıklama |
|---|---|---|
| hash | string | Block hash (id); must match number. |
| number | number | Block number; must match hash. |
| visible | boolean | true = base58 addresses (in the request and the response); false (default) = hex addresses. (isteğe bağlı) |
Dönüş değeri
Tür
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.
Kod örnekleri
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
}'