cURL
curl --request POST \
--url https://mission-control.api.herodotus.cloud/grow-orders \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"hashing_functions": [],
"min_batch_size": 123,
"finish_block_number": 123,
"start_block_number": 123
}
'import requests
url = "https://mission-control.api.herodotus.cloud/grow-orders"
payload = {
"hashing_functions": [],
"min_batch_size": 123,
"finish_block_number": 123,
"start_block_number": 123
}
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({
hashing_functions: [],
min_batch_size: 123,
finish_block_number: 123,
start_block_number: 123
})
};
fetch('https://mission-control.api.herodotus.cloud/grow-orders', 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/grow-orders",
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([
'hashing_functions' => [
],
'min_batch_size' => 123,
'finish_block_number' => 123,
'start_block_number' => 123
]),
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/grow-orders"
payload := strings.NewReader("{\n \"hashing_functions\": [],\n \"min_batch_size\": 123,\n \"finish_block_number\": 123,\n \"start_block_number\": 123\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/grow-orders")
.header("api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"hashing_functions\": [],\n \"min_batch_size\": 123,\n \"finish_block_number\": 123,\n \"start_block_number\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mission-control.api.herodotus.cloud/grow-orders")
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 \"hashing_functions\": [],\n \"min_batch_size\": 123,\n \"finish_block_number\": 123,\n \"start_block_number\": 123\n}"
response = http.request(request)
puts response.read_body{
"grow_order": {
"accumulated_chain_id": "1",
"created_at": "<string>",
"hashing_functions": [
"KECCAK"
],
"internal_id": "<string>",
"min_batch_size": 123,
"next_from_block_number": 123,
"settle_chain_id": "1",
"start_block_number": 123,
"status": "ACTIVE",
"updated_at": "<string>",
"active_query_id": "<string>",
"cancelled_at": "<string>",
"completed_at": "<string>",
"finish_block_number": 123
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Grow Orders
Post grow orders
POST
/
grow-orders
cURL
curl --request POST \
--url https://mission-control.api.herodotus.cloud/grow-orders \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"hashing_functions": [],
"min_batch_size": 123,
"finish_block_number": 123,
"start_block_number": 123
}
'import requests
url = "https://mission-control.api.herodotus.cloud/grow-orders"
payload = {
"hashing_functions": [],
"min_batch_size": 123,
"finish_block_number": 123,
"start_block_number": 123
}
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({
hashing_functions: [],
min_batch_size: 123,
finish_block_number: 123,
start_block_number: 123
})
};
fetch('https://mission-control.api.herodotus.cloud/grow-orders', 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/grow-orders",
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([
'hashing_functions' => [
],
'min_batch_size' => 123,
'finish_block_number' => 123,
'start_block_number' => 123
]),
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/grow-orders"
payload := strings.NewReader("{\n \"hashing_functions\": [],\n \"min_batch_size\": 123,\n \"finish_block_number\": 123,\n \"start_block_number\": 123\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/grow-orders")
.header("api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"hashing_functions\": [],\n \"min_batch_size\": 123,\n \"finish_block_number\": 123,\n \"start_block_number\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mission-control.api.herodotus.cloud/grow-orders")
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 \"hashing_functions\": [],\n \"min_batch_size\": 123,\n \"finish_block_number\": 123,\n \"start_block_number\": 123\n}"
response = http.request(request)
puts response.read_body{
"grow_order": {
"accumulated_chain_id": "1",
"created_at": "<string>",
"hashing_functions": [
"KECCAK"
],
"internal_id": "<string>",
"min_batch_size": 123,
"next_from_block_number": 123,
"settle_chain_id": "1",
"start_block_number": 123,
"status": "ACTIVE",
"updated_at": "<string>",
"active_query_id": "<string>",
"cancelled_at": "<string>",
"completed_at": "<string>",
"finish_block_number": 123
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Authorizations
Body
application/json
Available options:
1, 11155111, STARKNET, SN_SEPOLIA, 10, 11155420, 42161, 421614, 480, 4801, 8453, 84532, 33139, 33111, 300 Available options:
KECCAK, POSEIDON Available options:
1, 11155111, STARKNET, SN_SEPOLIA, 10, 11155420, 42161, 421614, 480, 4801, 8453, 84532, 33139, 33111, 300 Response
Create grow order
Show child attributes
Show child attributes
Was this page helpful?
⌘I

