> ## 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.

# Get proofs for MMR

> Get proofs for MMR



## OpenAPI

````yaml /data-structure-indexer-api/openapi-data-structure-indexer-api.json get /accumulators/proofs
openapi: 3.0.3
info:
  title: Data Structure Indexer API
  description: API for fetching data from the Data Structure Indexer
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://rs-indexer.api.herodotus.cloud
    description: Production server
  - url: https://staging.rs-indexer.api.herodotus.cloud
    description: Staging server
security: []
tags:
  - name: accumulators
    description: Accumulators endpoints.
  - name: remappers
    description: Remappers endpoints.
paths:
  /accumulators/proofs:
    get:
      tags:
        - accumulators
      summary: Get proofs for MMR
      description: Get proofs for MMR
      operationId: get_proofs
      parameters:
        - name: deployed_on_chain
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/ChainId'
        - name: accumulates_chain
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/ChainId'
        - name: hashing_function
          in: query
          required: false
          schema:
            allOf:
              - $ref: '#/components/schemas/HashingFunction'
            nullable: true
        - name: contract_type
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/ContractType'
        - name: from_block_number_inclusive
          in: query
          required: false
          schema:
            type: integer
            format: int32
            nullable: true
        - name: to_block_number_inclusive
          in: query
          required: false
          schema:
            type: integer
            format: int32
            nullable: true
        - name: block_numbers
          in: query
          required: false
          schema:
            type: array
            items:
              type: integer
              format: int32
            nullable: true
        - name: is_meta_included
          in: query
          required: false
          schema:
            type: boolean
            nullable: true
        - name: is_whole_tree
          in: query
          required: false
          schema:
            type: boolean
            nullable: true
        - name: is_rlp_included
          in: query
          required: false
          schema:
            type: boolean
            nullable: true
        - name: is_pure_rlp
          in: query
          required: false
          schema:
            type: boolean
            nullable: true
        - name: onchain_accumulator_id
          in: query
          required: false
          schema:
            type: string
            nullable: true
        - name: accumulator_size
          in: query
          required: false
          schema:
            type: integer
            format: int32
            nullable: true
      responses:
        '200':
          description: Get mmr metadata and proof
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MMRMetaAndProofsResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
components:
  schemas:
    ChainId:
      type: string
      enum:
        - '1'
        - '11155111'
        - '137'
        - '280'
        - MADARA_PRAGMA
        - STARKNET
        - SN_SEPOLIA
        - '300'
        - '11155420'
        - '421614'
        - '4801'
        - '84532'
        - UNKNOWN
    HashingFunction:
      type: string
      enum:
        - keccak
        - poseidon
        - pedersen
    ContractType:
      type: string
      enum:
        - AGGREGATOR
        - ACCUMULATOR
        - REMAPPER
    MMRMetaAndProofsResponse:
      type: object
      required:
        - data
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/MMRMetaAndProofs'
    ApiErrorResponse:
      type: object
      required:
        - message
      properties:
        message:
          type: string
    MMRMetaAndProofs:
      type: object
      required:
        - proofs
      properties:
        meta:
          allOf:
            - $ref: '#/components/schemas/MMRMetadata'
          nullable: true
        proofs:
          type: array
          items:
            $ref: '#/components/schemas/MMRInclusionProof'
    MMRMetadata:
      type: object
      required:
        - mmr_size
        - mmr_id
        - mmr_root
        - mmr_peaks
        - contract_address
      properties:
        contract_address:
          type: string
        mmr_id:
          type: string
        mmr_peaks:
          type: array
          items:
            type: string
        mmr_root:
          type: string
        mmr_size:
          type: integer
          format: int32
    MMRInclusionProof:
      type: object
      required:
        - element_index
        - element_hash
        - block_number
        - siblings_hashes
      properties:
        block_number:
          type: integer
          format: int32
        element_hash:
          type: string
        element_index:
          type: integer
          format: int32
        rlp_block_header:
          allOf:
            - $ref: '#/components/schemas/Rlp'
          nullable: true
        siblings_hashes:
          type: array
          items:
            type: string
    Rlp:
      oneOf:
        - type: object
          required:
            - String
          properties:
            String:
              type: string
        - type: object
          required:
            - LittleEndian8ByteChunks
          properties:
            LittleEndian8ByteChunks:
              type: array
              items:
                type: string

````