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>'import requests
url = "https://api.blockscout.com/{chain_id}/api/v2/transactions/{transaction_hash_param}/fhe-operations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.blockscout.com/{chain_id}/api/v2/transactions/{transaction_hash_param}/fhe-operations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.blockscout.com/{chain_id}/api/v2/transactions/{transaction_hash_param}/fhe-operations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.blockscout.com/{chain_id}/api/v2/transactions/{transaction_hash_param}/fhe-operations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.blockscout.com/{chain_id}/api/v2/transactions/{transaction_hash_param}/fhe-operations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blockscout.com/{chain_id}/api/v2/transactions/{transaction_hash_param}/fhe-operations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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
}{
"message": "Resource not found"
}{
"errors": [
{
"detail": "null value where string expected",
"source": {
"pointer": "/data/attributes/petName"
},
"title": "Invalid value"
}
]
}transactions
List FHE operations for a specific transaction
Retrieves Fully Homomorphic Encryption (FHE) operations parsed from transaction logs. Includes operation details, HCU (Homomorphic Compute Unit) costs, operation types, and related metadata.
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>'import requests
url = "https://api.blockscout.com/{chain_id}/api/v2/transactions/{transaction_hash_param}/fhe-operations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.blockscout.com/{chain_id}/api/v2/transactions/{transaction_hash_param}/fhe-operations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.blockscout.com/{chain_id}/api/v2/transactions/{transaction_hash_param}/fhe-operations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.blockscout.com/{chain_id}/api/v2/transactions/{transaction_hash_param}/fhe-operations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.blockscout.com/{chain_id}/api/v2/transactions/{transaction_hash_param}/fhe-operations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blockscout.com/{chain_id}/api/v2/transactions/{transaction_hash_param}/fhe-operations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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
}{
"message": "Resource not found"
}{
"errors": [
{
"detail": "null value where string expected",
"source": {
"pointer": "/data/attributes/petName"
},
"title": "Invalid value"
}
]
}Authorizations
bearerAuthapiKeyAuth
API key passed as a Bearer token in the Authorization header.
Path Parameters
Transaction hash in the path
Pattern:
^0x([A-Fa-f0-9]{64})$The ID of the blockchain
Response
FHE operations for the specified transaction with transaction-level metrics.
Show child attributes
Show child attributes
Maximum HCU depth across all operations in the transaction
Required range:
x >= 0Example:
3
Total number of FHE operations in the transaction
Required range:
x >= 0Example:
5
Total HCU (Homomorphic Compute Units) cost for all operations in the transaction
Required range:
x >= 0Example:
500
Was this page helpful?
List external transactions linked to a transaction
Previous
List internal transactions triggered during a specific transaction
Next
⌘I