cURL
curl --request POST \
--url https://mission-control.api.herodotus.cloud/submit-request \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"data": {
"11155111": {
"block:10197420": {
"accounts": {
"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238": {
"slots": [
"0x0000000000000000000000000000000000000000000000000000000000000000"
]
},
"0xEEBC6016539E0bC60D35f527FEfa414794854499": {
"props": [
"BALANCE"
]
}
},
"header": [
"STATE_ROOT",
"TIMESTAMP"
]
}
}
},
"destination_chain_id": "11155420",
"fee": 0
}
'import requests
url = "https://mission-control.api.herodotus.cloud/submit-request"
payload = {
"data": { "11155111": { "block:10197420": {
"accounts": {
"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238": { "slots": ["0x0000000000000000000000000000000000000000000000000000000000000000"] },
"0xEEBC6016539E0bC60D35f527FEfa414794854499": { "props": ["BALANCE"] }
},
"header": ["STATE_ROOT", "TIMESTAMP"]
} } },
"destination_chain_id": "11155420",
"fee": 0
}
headers = {
"api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
data: {
'11155111': {
'block:10197420': {
accounts: {
'0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238': {slots: ['0x0000000000000000000000000000000000000000000000000000000000000000']},
'0xEEBC6016539E0bC60D35f527FEfa414794854499': {props: ['BALANCE']}
},
header: ['STATE_ROOT', 'TIMESTAMP']
}
}
},
destination_chain_id: '11155420',
fee: 0
})
};
fetch('https://mission-control.api.herodotus.cloud/submit-request', 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://mission-control.api.herodotus.cloud/submit-request",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'data' => [
'11155111' => [
'block:10197420' => [
'accounts' => [
'0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238' => [
'slots' => [
'0x0000000000000000000000000000000000000000000000000000000000000000'
]
],
'0xEEBC6016539E0bC60D35f527FEfa414794854499' => [
'props' => [
'BALANCE'
]
]
],
'header' => [
'STATE_ROOT',
'TIMESTAMP'
]
]
]
],
'destination_chain_id' => '11155420',
'fee' => 0
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mission-control.api.herodotus.cloud/submit-request"
payload := strings.NewReader("{\n \"data\": {\n \"11155111\": {\n \"block:10197420\": {\n \"accounts\": {\n \"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238\": {\n \"slots\": [\n \"0x0000000000000000000000000000000000000000000000000000000000000000\"\n ]\n },\n \"0xEEBC6016539E0bC60D35f527FEfa414794854499\": {\n \"props\": [\n \"BALANCE\"\n ]\n }\n },\n \"header\": [\n \"STATE_ROOT\",\n \"TIMESTAMP\"\n ]\n }\n }\n },\n \"destination_chain_id\": \"11155420\",\n \"fee\": 0\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mission-control.api.herodotus.cloud/submit-request")
.header("api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"11155111\": {\n \"block:10197420\": {\n \"accounts\": {\n \"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238\": {\n \"slots\": [\n \"0x0000000000000000000000000000000000000000000000000000000000000000\"\n ]\n },\n \"0xEEBC6016539E0bC60D35f527FEfa414794854499\": {\n \"props\": [\n \"BALANCE\"\n ]\n }\n },\n \"header\": [\n \"STATE_ROOT\",\n \"TIMESTAMP\"\n ]\n }\n }\n },\n \"destination_chain_id\": \"11155420\",\n \"fee\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mission-control.api.herodotus.cloud/submit-request")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {\n \"11155111\": {\n \"block:10197420\": {\n \"accounts\": {\n \"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238\": {\n \"slots\": [\n \"0x0000000000000000000000000000000000000000000000000000000000000000\"\n ]\n },\n \"0xEEBC6016539E0bC60D35f527FEfa414794854499\": {\n \"props\": [\n \"BALANCE\"\n ]\n }\n },\n \"header\": [\n \"STATE_ROOT\",\n \"TIMESTAMP\"\n ]\n }\n }\n },\n \"destination_chain_id\": \"11155420\",\n \"fee\": 0\n}"
response = http.request(request)
puts response.read_body{
"request_id": "<string>",
"status": "success"
}{
"error": "Something went wrong",
"status": "error"
}{
"error": "Something went wrong",
"status": "error"
}{
"error": "Something went wrong",
"status": "error"
}{
"error": "Something went wrong",
"status": "error"
}{
"error": "Something went wrong",
"status": "error"
}Submit Request
Post submit request
POST
/
submit-request
cURL
curl --request POST \
--url https://mission-control.api.herodotus.cloud/submit-request \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"data": {
"11155111": {
"block:10197420": {
"accounts": {
"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238": {
"slots": [
"0x0000000000000000000000000000000000000000000000000000000000000000"
]
},
"0xEEBC6016539E0bC60D35f527FEfa414794854499": {
"props": [
"BALANCE"
]
}
},
"header": [
"STATE_ROOT",
"TIMESTAMP"
]
}
}
},
"destination_chain_id": "11155420",
"fee": 0
}
'import requests
url = "https://mission-control.api.herodotus.cloud/submit-request"
payload = {
"data": { "11155111": { "block:10197420": {
"accounts": {
"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238": { "slots": ["0x0000000000000000000000000000000000000000000000000000000000000000"] },
"0xEEBC6016539E0bC60D35f527FEfa414794854499": { "props": ["BALANCE"] }
},
"header": ["STATE_ROOT", "TIMESTAMP"]
} } },
"destination_chain_id": "11155420",
"fee": 0
}
headers = {
"api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
data: {
'11155111': {
'block:10197420': {
accounts: {
'0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238': {slots: ['0x0000000000000000000000000000000000000000000000000000000000000000']},
'0xEEBC6016539E0bC60D35f527FEfa414794854499': {props: ['BALANCE']}
},
header: ['STATE_ROOT', 'TIMESTAMP']
}
}
},
destination_chain_id: '11155420',
fee: 0
})
};
fetch('https://mission-control.api.herodotus.cloud/submit-request', 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://mission-control.api.herodotus.cloud/submit-request",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'data' => [
'11155111' => [
'block:10197420' => [
'accounts' => [
'0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238' => [
'slots' => [
'0x0000000000000000000000000000000000000000000000000000000000000000'
]
],
'0xEEBC6016539E0bC60D35f527FEfa414794854499' => [
'props' => [
'BALANCE'
]
]
],
'header' => [
'STATE_ROOT',
'TIMESTAMP'
]
]
]
],
'destination_chain_id' => '11155420',
'fee' => 0
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mission-control.api.herodotus.cloud/submit-request"
payload := strings.NewReader("{\n \"data\": {\n \"11155111\": {\n \"block:10197420\": {\n \"accounts\": {\n \"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238\": {\n \"slots\": [\n \"0x0000000000000000000000000000000000000000000000000000000000000000\"\n ]\n },\n \"0xEEBC6016539E0bC60D35f527FEfa414794854499\": {\n \"props\": [\n \"BALANCE\"\n ]\n }\n },\n \"header\": [\n \"STATE_ROOT\",\n \"TIMESTAMP\"\n ]\n }\n }\n },\n \"destination_chain_id\": \"11155420\",\n \"fee\": 0\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mission-control.api.herodotus.cloud/submit-request")
.header("api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"11155111\": {\n \"block:10197420\": {\n \"accounts\": {\n \"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238\": {\n \"slots\": [\n \"0x0000000000000000000000000000000000000000000000000000000000000000\"\n ]\n },\n \"0xEEBC6016539E0bC60D35f527FEfa414794854499\": {\n \"props\": [\n \"BALANCE\"\n ]\n }\n },\n \"header\": [\n \"STATE_ROOT\",\n \"TIMESTAMP\"\n ]\n }\n }\n },\n \"destination_chain_id\": \"11155420\",\n \"fee\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mission-control.api.herodotus.cloud/submit-request")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {\n \"11155111\": {\n \"block:10197420\": {\n \"accounts\": {\n \"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238\": {\n \"slots\": [\n \"0x0000000000000000000000000000000000000000000000000000000000000000\"\n ]\n },\n \"0xEEBC6016539E0bC60D35f527FEfa414794854499\": {\n \"props\": [\n \"BALANCE\"\n ]\n }\n },\n \"header\": [\n \"STATE_ROOT\",\n \"TIMESTAMP\"\n ]\n }\n }\n },\n \"destination_chain_id\": \"11155420\",\n \"fee\": 0\n}"
response = http.request(request)
puts response.read_body{
"request_id": "<string>",
"status": "success"
}{
"error": "Something went wrong",
"status": "error"
}{
"error": "Something went wrong",
"status": "error"
}{
"error": "Something went wrong",
"status": "error"
}{
"error": "Something went wrong",
"status": "error"
}{
"error": "Something went wrong",
"status": "error"
}Authorizations
Body
application/json
Submit user request
Was this page helpful?
⌘I

