Skip to main content
GET
/
{chain_id}
/
api
/
v2
/
transactions
/
{transaction_hash_param}
/
fhe-operations
List FHE operations for a specific transaction
curl --request GET \
  --url https://api.blockscout.com/{chain_id}/api/v2/transactions/{transaction_hash_param}/fhe-operations \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "block_number": 12345678,
      "fhe_type": "Uint8",
      "hcu_cost": 100,
      "hcu_depth": 1,
      "inputs": {
        "control": "<string>",
        "ct": "<string>",
        "if_false": "<string>",
        "if_true": "<string>",
        "lhs": "<string>",
        "plaintext": 123,
        "rhs": "<string>"
      },
      "is_scalar": false,
      "log_index": 123,
      "operation": "FheAdd",
      "result": "<string>",
      "type": "arithmetic",
      "caller": {
        "ens_domain_name": "<string>",
        "hash": "<string>",
        "implementations": [
          {
            "address_hash": "<string>",
            "name": "<string>"
          }
        ],
        "is_contract": true,
        "is_scam": true,
        "is_verified": true,
        "metadata": {
          "tags": [
            {
              "meta": {},
              "name": "<string>",
              "ordinal": 123,
              "slug": "<string>",
              "tagType": "<string>"
            }
          ]
        },
        "name": "<string>",
        "private_tags": [
          {
            "address_hash": "<string>",
            "display_name": "<string>",
            "label": "<string>"
          }
        ],
        "public_tags": [
          {
            "address_hash": "<string>",
            "display_name": "<string>",
            "label": "<string>"
          }
        ],
        "watchlist_names": [
          {
            "display_name": "<string>",
            "label": "<string>"
          }
        ]
      }
    }
  ],
  "max_depth_hcu": 3,
  "operation_count": 5,
  "total_hcu": 500
}

Authorizations

Authorization
string
header
required

API key passed as a Bearer token in the Authorization header.

Path Parameters

transaction_hash_param
string
required

Transaction hash in the path

Pattern: ^0x([A-Fa-f0-9]{64})$
chain_id
string
required

The ID of the blockchain

Response

FHE operations for the specified transaction with transaction-level metrics.

items
FheOperation · object[]
required
max_depth_hcu
integer
required

Maximum HCU depth across all operations in the transaction

Required range: x >= 0
Example:

3

operation_count
integer
required

Total number of FHE operations in the transaction

Required range: x >= 0
Example:

5

total_hcu
integer
required

Total HCU (Homomorphic Compute Units) cost for all operations in the transaction

Required range: x >= 0
Example:

500