Skip to main content
POST
/
submit-batch-query
Submit a batch query
curl --request POST \
  --url https://api.example.com/submit-batch-query \
  --header 'Content-Type: application/json' \
  --data '
{
  "destinationChainId": "ETHEREUM_MAINNET",
  "tasks": [
    {
      "type": "DatalakeCompute",
      "datalake": {
        "type": "BlockSampled",
        "chainId": "ETHEREUM_MAINNET",
        "blockRangeStart": 123,
        "blockRangeEnd": 123,
        "sampledProperty": "<string>",
        "increment": 1
      },
      "compute": {
        "aggregateFnId": "avg",
        "aggregateFnCtx": {
          "operator": "none",
          "valueToCompare": "<string>"
        }
      }
    }
  ]
}
'
{
  "taskHashes": [
    "<string>"
  ],
  "batchId": "<string>"
}

Query Parameters

apiKey
string
required

Body

application/json
destinationChainId
enum<string>
required
Available options:
ETHEREUM_MAINNET,
ETHEREUM_SEPOLIA,
STARKNET_MAINNET,
STARKNET_SEPOLIA
tasks
object[]
required

Response

Default Response

taskHashes
string[]
required
batchId
string
required