Get task details
curl --request GET \
--url https://staging.hdp.api.herodotus.cloud/tasks/{uuid}/detailsimport requests
url = "https://staging.hdp.api.herodotus.cloud/tasks/{uuid}/details"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://staging.hdp.api.herodotus.cloud/tasks/{uuid}/details', 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://staging.hdp.api.herodotus.cloud/tasks/{uuid}/details",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://staging.hdp.api.herodotus.cloud/tasks/{uuid}/details"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://staging.hdp.api.herodotus.cloud/tasks/{uuid}/details")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.hdp.api.herodotus.cloud/tasks/{uuid}/details")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"destinationChainId": "0xaa36a7",
"mmrs": [
{
"chain_id": "0xaa37dc",
"hashing_function": "poseidon",
"id": "0x30314b345136303433515133424b4d42324e31394d4443595757",
"root": "0x6e7be7495a7126588df5ce10e090b27ea87357b966cc5b4143d0845ee15af0e",
"size": "0x2644"
},
{
"chain_id": "0xaa36a7",
"hashing_function": "keccak",
"id": "0x30314a4d484d31413242354d38455336505a57524a505354374d",
"root": "0x8df74acdc8c1fc184081e4a2ec4ccca78c03a541b8eb37ccfb5d11f205555666",
"size": "0x0a813"
}
],
"outputTreeRoot": "0xc103b036a12f8f9307b062b11181a726109640f2deb15a8d29ee5bb754a2943a",
"programHash": "0x34a16478e83f69c4f0bcdb7549d32f92c9b7776bb3f71da06de334f1871eba0",
"taskHash": "0x56839c1e7f817be047794dbdc727585f89bb92c8c305fd8df0fbcc19602339ac",
"taskId": "01J3Z3K2P4W6M8Q0A1B2C3D4E5"
}{
"error": "<string>",
"details": "<string>",
"message": "<string>",
"taskId": "<string>"
}{
"error": "<string>",
"details": "<string>",
"message": "<string>",
"taskId": "<string>"
}tasks
Get task details
Retrieves comprehensive details of a specific task including destination chain ID, program hash, task hash, output tree root, and MMRs used. This endpoint does not require authentication.
GET
/
tasks
/
{uuid}
/
details
Get task details
curl --request GET \
--url https://staging.hdp.api.herodotus.cloud/tasks/{uuid}/detailsimport requests
url = "https://staging.hdp.api.herodotus.cloud/tasks/{uuid}/details"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://staging.hdp.api.herodotus.cloud/tasks/{uuid}/details', 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://staging.hdp.api.herodotus.cloud/tasks/{uuid}/details",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://staging.hdp.api.herodotus.cloud/tasks/{uuid}/details"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://staging.hdp.api.herodotus.cloud/tasks/{uuid}/details")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.hdp.api.herodotus.cloud/tasks/{uuid}/details")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"destinationChainId": "0xaa36a7",
"mmrs": [
{
"chain_id": "0xaa37dc",
"hashing_function": "poseidon",
"id": "0x30314b345136303433515133424b4d42324e31394d4443595757",
"root": "0x6e7be7495a7126588df5ce10e090b27ea87357b966cc5b4143d0845ee15af0e",
"size": "0x2644"
},
{
"chain_id": "0xaa36a7",
"hashing_function": "keccak",
"id": "0x30314a4d484d31413242354d38455336505a57524a505354374d",
"root": "0x8df74acdc8c1fc184081e4a2ec4ccca78c03a541b8eb37ccfb5d11f205555666",
"size": "0x0a813"
}
],
"outputTreeRoot": "0xc103b036a12f8f9307b062b11181a726109640f2deb15a8d29ee5bb754a2943a",
"programHash": "0x34a16478e83f69c4f0bcdb7549d32f92c9b7776bb3f71da06de334f1871eba0",
"taskHash": "0x56839c1e7f817be047794dbdc727585f89bb92c8c305fd8df0fbcc19602339ac",
"taskId": "01J3Z3K2P4W6M8Q0A1B2C3D4E5"
}{
"error": "<string>",
"details": "<string>",
"message": "<string>",
"taskId": "<string>"
}{
"error": "<string>",
"details": "<string>",
"message": "<string>",
"taskId": "<string>"
}Was this page helpful?
⌘I

