Overview
Applicative Recursion (AR) lets you group multiple Atlantic queries into a single bucket and verify them together as one on-chain operation. This is useful for batch workloads where you want one aggregated verification outcome.AR Flow
The Applicative Recursion workflow consists of four main steps:1. Create Bucket
First, you need to create a bucket that will contain your related queries.Create Bucket
Create a new Atlantic bucket for grouping related queries
POST /buckets
Required Parameters:
aggregatorVersion: The version of the aggregator to use (e.g., βsnos_aggregator_0.13.2β)
externalId: Custom identifier for the bucketnodeWidth: Width of the node (integer)aggregatorParams: Additional parameters for the aggregator
2. Submit Queries with Bucket ID
Once you have a bucket, you can submit multiple queries to it. Each query must include:bucketId: The ID of the bucket you createdbucketJobIndex: An incremental index (0, 1, 2, β¦) for each query in the bucket
Submit Query
Submit queries to a bucket with incremental job indices
POST /atlantic-query
AR-Specific Parameters:
bucketId: The ID of the bucket to submit the query tobucketJobIndex: The index of the job inside the bucket (must be sequential)
- Use the Swagger UI for submitting queries due to file upload limitations
- Job indices must be sequential (0, 1, 2, β¦)
3. Close Bucket
After submitting all your queries to the bucket, you need to close it to signal that no more queries will be added.Close Bucket
Close a bucket to finalize the batch processing
POST /buckets/close
Parameters:
bucketId: The ID of the bucket to close
4. Wait for Results
Once the bucket is closed, Atlantic will process all queries in the bucket and aggregate the results. You can monitor the bucket status using the get bucket endpoint.Get Bucket
Check the status and results of your bucket
OPEN: Bucket is open and accepting queriesIN_PROGRESS: Bucket is closed and processing queriesDONE: All queries in the bucket have been processed successfullyFAILED: One or more queries in the bucket failed
Managing AR Buckets
You can view and manage your Applicative Recursion buckets through the Herodotus Cloud console. The interface provides a comprehensive view of all your buckets with their current status and details.
Bucket Details View
When you select a specific bucket, you can see its details.
Bucket Tree Structure
The Applicative Recursion system creates a tree-like structure.
Complete Example
Hereβs a complete example of using Applicative Recursion:Step 1: Create Bucket
Step 2: Submit Multiple Queries
Step 3: Close Bucket
Step 4: Monitor Results
Related Endpoints
List Buckets
View all your buckets
Get Bucket
Get detailed bucket information

