Skip to content

Transaction count is wrong

Block really only has 40 transactions, so it seems like it is counting operations or something instead (and even then not sure how it got exactly that amount): image

This does appear to be a frontend bug, not a backend one, as this API call: https://api.hive.blog/hafah-api/blocks/94391920/operations?page=1&page-size=100&page-order=desc&data-size-limit=200000

returns 73 operations, not transactions.

To determine the number of transactions in this block, could get the maximum of trx_in_block values I think (assuming it is not possible to create an empty transaction, I need to check on that).

{
  "total_operations": 73,
  "total_pages": 1,
  "operations_result": [
    {
      "op": {
        "type": "vote_operation",
        "value": {
          "voter": "solox",
          "author": "lauracraft",
          "weight": 735,
          "permlink": "development-of-a-drip-irrigation-system-for-the-summer-season-world-water-day-engesp"
        }
      },
      "block": 94391920,
      "trx_id": "f59c93d0126b9586d46e2c5b2f50fd218d8f90d8",
      "op_pos": 0,
      "op_type_id": 0,
      "timestamp": "2025-03-23T16:32:12",
      "virtual_op": false,
      "operation_id": "405410209406648320",
      "trx_in_block": 0
    },
Edited by Dan Notestein