> ## Documentation Index
> Fetch the complete documentation index at: https://docs.herodotus.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Estimate batch query cost

> Allows you to estimate the cost of a batch query before submitting it, the body is the same as the submit batch query body, use that endpoint for reference on how to build the body.



## OpenAPI

````yaml /storage-proofs-api/openapi-storage-proof-api.json post /estimate-batch-query-cost
openapi: 3.0.3
info:
  title: Storage Proofs API
  description: >-
    API for submitting and managing Storage Proofs API requests across various
    blockchain networks
  version: 1.0.0
servers:
  - url: https://api.herodotus.cloud
    description: Production Server
  - url: https://staging.api.herodotus.cloud
    description: Staging Server
security: []
tags:
  - name: The one you want
    description: Probably the route you're looking for
  - name: Basic Batch Query
    description: Batch Query routes
  - name: Health check
    description: Health check routes
  - name: Info
    description: Info routes
paths:
  /estimate-batch-query-cost:
    post:
      tags:
        - Basic Batch Query
      summary: Estimate batch query cost
      description: >-
        Allows you to estimate the cost of a batch query before submitting it,
        the body is the same as the submit batch query body, use that endpoint
        for reference on how to build the body.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                destinationChainId:
                  $ref: '#/components/schemas/ChainId'
                data:
                  type: object
                  required:
                    - STARKNET
                    - SN_SEPOLIA
                    - '1'
                    - '300'
                    - '11155111'
                    - '11155420'
                    - '421614'
                    - '4801'
                    - '84532'
                  properties:
                    '1':
                      type: object
                      additionalProperties:
                        type: object
                        properties:
                          header:
                            type: array
                            items:
                              $ref: '#/components/schemas/ProvableHeaderProperty'
                          accounts:
                            type: object
                            additionalProperties:
                              type: object
                              properties:
                                props:
                                  type: array
                                  items:
                                    $ref: >-
                                      #/components/schemas/ProvableAccountProperty
                                  default: []
                                  description: Account properties
                                slots:
                                  type: array
                                  items:
                                    type: string
                                  default: []
                                  description: Storage slots
                              additionalProperties: false
                        additionalProperties: false
                    '300':
                      type: object
                      additionalProperties:
                        type: object
                        properties:
                          header:
                            type: array
                            items:
                              $ref: '#/components/schemas/ProvableHeaderProperty'
                          accounts:
                            type: object
                            additionalProperties:
                              type: object
                              properties:
                                props:
                                  type: array
                                  items:
                                    $ref: >-
                                      #/components/schemas/ProvableAccountProperty
                                  default: []
                                  description: Account properties
                                slots:
                                  type: array
                                  items:
                                    type: string
                                  default: []
                                  description: Storage slots
                              additionalProperties: false
                        additionalProperties: false
                    '4801':
                      type: object
                      additionalProperties:
                        type: object
                        properties:
                          header:
                            type: array
                            items:
                              $ref: '#/components/schemas/ProvableHeaderProperty'
                          accounts:
                            type: object
                            additionalProperties:
                              type: object
                              properties:
                                props:
                                  type: array
                                  items:
                                    $ref: >-
                                      #/components/schemas/ProvableAccountProperty
                                  default: []
                                  description: Account properties
                                slots:
                                  type: array
                                  items:
                                    type: string
                                  default: []
                                  description: Storage slots
                              additionalProperties: false
                        additionalProperties: false
                    '84532':
                      type: object
                      additionalProperties:
                        type: object
                        properties:
                          header:
                            type: array
                            items:
                              $ref: '#/components/schemas/ProvableHeaderProperty'
                          accounts:
                            type: object
                            additionalProperties:
                              type: object
                              properties:
                                props:
                                  type: array
                                  items:
                                    $ref: >-
                                      #/components/schemas/ProvableAccountProperty
                                  default: []
                                  description: Account properties
                                slots:
                                  type: array
                                  items:
                                    type: string
                                  default: []
                                  description: Storage slots
                              additionalProperties: false
                        additionalProperties: false
                    '421614':
                      type: object
                      additionalProperties:
                        type: object
                        properties:
                          header:
                            type: array
                            items:
                              $ref: '#/components/schemas/ProvableHeaderProperty'
                          accounts:
                            type: object
                            additionalProperties:
                              type: object
                              properties:
                                props:
                                  type: array
                                  items:
                                    $ref: >-
                                      #/components/schemas/ProvableAccountProperty
                                  default: []
                                  description: Account properties
                                slots:
                                  type: array
                                  items:
                                    type: string
                                  default: []
                                  description: Storage slots
                              additionalProperties: false
                        additionalProperties: false
                    '11155111':
                      type: object
                      additionalProperties:
                        type: object
                        properties:
                          header:
                            type: array
                            items:
                              $ref: '#/components/schemas/ProvableHeaderProperty'
                          accounts:
                            type: object
                            additionalProperties:
                              type: object
                              properties:
                                props:
                                  type: array
                                  items:
                                    $ref: >-
                                      #/components/schemas/ProvableAccountProperty
                                  default: []
                                  description: Account properties
                                slots:
                                  type: array
                                  items:
                                    type: string
                                  default: []
                                  description: Storage slots
                              additionalProperties: false
                        additionalProperties: false
                    '11155420':
                      type: object
                      additionalProperties:
                        type: object
                        properties:
                          header:
                            type: array
                            items:
                              $ref: '#/components/schemas/ProvableHeaderProperty'
                          accounts:
                            type: object
                            additionalProperties:
                              type: object
                              properties:
                                props:
                                  type: array
                                  items:
                                    $ref: >-
                                      #/components/schemas/ProvableAccountProperty
                                  default: []
                                  description: Account properties
                                slots:
                                  type: array
                                  items:
                                    type: string
                                  default: []
                                  description: Storage slots
                              additionalProperties: false
                        additionalProperties: false
                    STARKNET:
                      type: object
                      additionalProperties:
                        type: object
                        properties:
                          header:
                            type: array
                            items:
                              $ref: '#/components/schemas/ProvableHeaderProperty'
                          accounts:
                            type: object
                            additionalProperties:
                              type: object
                              properties:
                                props:
                                  type: array
                                  items:
                                    $ref: >-
                                      #/components/schemas/ProvableAccountProperty
                                  default: []
                                  description: Account properties
                                slots:
                                  type: array
                                  items:
                                    type: string
                                  default: []
                                  description: Storage slots
                              additionalProperties: false
                        additionalProperties: false
                    SN_SEPOLIA:
                      type: object
                      additionalProperties:
                        type: object
                        properties:
                          header:
                            type: array
                            items:
                              $ref: '#/components/schemas/ProvableHeaderProperty'
                          accounts:
                            type: object
                            additionalProperties:
                              type: object
                              properties:
                                props:
                                  type: array
                                  items:
                                    $ref: >-
                                      #/components/schemas/ProvableAccountProperty
                                  default: []
                                  description: Account properties
                                slots:
                                  type: array
                                  items:
                                    type: string
                                  default: []
                                  description: Storage slots
                              additionalProperties: false
                        additionalProperties: false
                  additionalProperties: false
              required:
                - destinationChainId
                - data
              additionalProperties: false
        required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  feeEstimate:
                    type: string
                required:
                  - feeEstimate
                additionalProperties: false
      security: []
components:
  schemas:
    ChainId:
      type: string
      enum:
        - STARKNET
        - SN_SEPOLIA
        - '1'
        - '300'
        - '11155111'
        - '11155420'
        - '421614'
        - '4801'
        - '84532'
    ProvableHeaderProperty:
      type: string
      enum:
        - PARENT_HASH
        - UNCLES_HASH
        - COINBASE
        - PROPOSER
        - STATE_ROOT
        - TRANSACTIONS_ROOT
        - RECEIPTS_ROOT
        - LOGS_BLOOM
        - DIFFICULTY
        - BLOCK_NUMBER
        - GAS_LIMIT
        - GAS_USED
        - TIMESTAMP
        - EXTRA_DATA
        - MIX_HASH
        - NONCE
        - BASE_FEE_PER_GAS
        - WITHDRAWALS_ROOT
        - BLOB_GAS_USED
        - EXCESS_BLOB_GAS
        - PARENT_BEACON_BLOCK_ROOT
        - PROPOSER
    ProvableAccountProperty:
      type: string
      enum:
        - BALANCE
        - NONCE
        - CODE_HASH
        - STORAGE_ROOT

````