Moirai Labs Contract Info Controller API

The contract-info-controller API from Moirai Labs — 6 operation(s) for contract-info-controller.

Operations 6

POST /contracts Register new contract for user #
GET /contracts/{id} Get exact contract #
GET /contracts/{contractAddress}/fetchdata Retrieve method #
GET /contracts/user Get all user's contracts #
GET /contracts/status Get contract sync status #
DELETE /contracts/{contractAddress} DELETE contract for user to analysis #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/moirailabs-com:moirailabs-com-contract-info-controller-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

moirailabs-com-contract-info-controller-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OpenAPI definition Contract Info Controller API
  version: v0
servers:
- url: http://api.moirailabs.com/api/v1
  description: Generated server url
security:
- bearerAuth: []
tags:
- name: contract-info-controller
paths:
  /contracts:
    post:
      tags:
      - contract-info-controller
      summary: Register new contract for user
      description: Register new contract for user to start calculate analytics
      operationId: registerContract
      parameters:
      - name: X-Request-ID
        in: header
        description: Optional frontend-generated correlation ID. The backend returns the effective value in the response header.
        required: false
        schema:
          maxLength: 128
          minLength: 1
          pattern: ^[A-Za-z0-9._:-]{1,128}$
          type: string
          example: 8df31080-3b78-4e63-a67d-c2d107190f3c
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContractInfoRequest'
        required: true
      responses:
        '200':
          description: OK
          headers:
            X-Request-ID:
              description: Effective request correlation ID used by backend audit logging.
              schema:
                maxLength: 128
                minLength: 1
                pattern: ^[A-Za-z0-9._:-]{1,128}$
                type: string
                example: 8df31080-3b78-4e63-a67d-c2d107190f3c
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ContractInfoResponse'
  /contracts/{id}:
    get:
      tags:
      - contract-info-controller
      summary: Get exact contract
      description: Get method to get information about contract. User can take info about only his registred contracts
      operationId: getContract
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: X-Request-ID
        in: header
        description: Optional frontend-generated correlation ID. The backend returns the effective value in the response header.
        required: false
        schema:
          maxLength: 128
          minLength: 1
          pattern: ^[A-Za-z0-9._:-]{1,128}$
          type: string
          example: 8df31080-3b78-4e63-a67d-c2d107190f3c
      responses:
        '200':
          description: OK
          headers:
            X-Request-ID:
              description: Effective request correlation ID used by backend audit logging.
              schema:
                maxLength: 128
                minLength: 1
                pattern: ^[A-Za-z0-9._:-]{1,128}$
                type: string
                example: 8df31080-3b78-4e63-a67d-c2d107190f3c
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ContractInfoResponse'
  /contracts/{contractAddress}/fetchdata:
    get:
      tags:
      - contract-info-controller
      summary: Retrieve method
      description: GET-method just to update last data about contract and retrieve last tx from blockchain
      operationId: fetchDataContract
      parameters:
      - name: contractAddress
        in: path
        required: true
        schema:
          type: string
      - name: startBlock
        in: query
        required: true
        schema:
          type: string
      - name: endBlock
        in: query
        required: true
        schema:
          type: string
      - name: X-Request-ID
        in: header
        description: Optional frontend-generated correlation ID. The backend returns the effective value in the response header.
        required: false
        schema:
          maxLength: 128
          minLength: 1
          pattern: ^[A-Za-z0-9._:-]{1,128}$
          type: string
          example: 8df31080-3b78-4e63-a67d-c2d107190f3c
      responses:
        '200':
          description: OK
          headers:
            X-Request-ID:
              description: Effective request correlation ID used by backend audit logging.
              schema:
                maxLength: 128
                minLength: 1
                pattern: ^[A-Za-z0-9._:-]{1,128}$
                type: string
                example: 8df31080-3b78-4e63-a67d-c2d107190f3c
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ContractInfoResponse'
  /contracts/user:
    get:
      tags:
      - contract-info-controller
      summary: Get all user's contracts
      description: GET-method to get all contract registred by user
      operationId: getUserContracts
      parameters:
      - name: X-Request-ID
        in: header
        description: Optional frontend-generated correlation ID. The backend returns the effective value in the response header.
        required: false
        schema:
          maxLength: 128
          minLength: 1
          pattern: ^[A-Za-z0-9._:-]{1,128}$
          type: string
          example: 8df31080-3b78-4e63-a67d-c2d107190f3c
      responses:
        '200':
          description: OK
          headers:
            X-Request-ID:
              description: Effective request correlation ID used by backend audit logging.
              schema:
                maxLength: 128
                minLength: 1
                pattern: ^[A-Za-z0-9._:-]{1,128}$
                type: string
                example: 8df31080-3b78-4e63-a67d-c2d107190f3c
          content:
            '*/*':
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ContractInfoResponse'
  /contracts/status:
    get:
      tags:
      - contract-info-controller
      summary: Get contract sync status
      description: Check synced block in DB against current blockchain head
      operationId: getContractStatus
      parameters:
      - name: contractAddress
        in: query
        required: true
        schema:
          type: string
      - name: X-Request-ID
        in: header
        description: Optional frontend-generated correlation ID. The backend returns the effective value in the response header.
        required: false
        schema:
          maxLength: 128
          minLength: 1
          pattern: ^[A-Za-z0-9._:-]{1,128}$
          type: string
          example: 8df31080-3b78-4e63-a67d-c2d107190f3c
      responses:
        '200':
          description: OK
          headers:
            X-Request-ID:
              description: Effective request correlation ID used by backend audit logging.
              schema:
                maxLength: 128
                minLength: 1
                pattern: ^[A-Za-z0-9._:-]{1,128}$
                type: string
                example: 8df31080-3b78-4e63-a67d-c2d107190f3c
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ContractSyncStatusResponse'
  /contracts/{contractAddress}:
    delete:
      tags:
      - contract-info-controller
      summary: DELETE contract for user to analysis
      description: DELETE-method will delete contract from list of analysis
      operationId: deleteContract
      parameters:
      - name: contractAddress
        in: path
        required: true
        schema:
          type: string
      - name: X-Request-ID
        in: header
        description: Optional frontend-generated correlation ID. The backend returns the effective value in the response header.
        required: false
        schema:
          maxLength: 128
          minLength: 1
          pattern: ^[A-Za-z0-9._:-]{1,128}$
          type: string
          example: 8df31080-3b78-4e63-a67d-c2d107190f3c
      responses:
        '200':
          description: OK
          headers:
            X-Request-ID:
              description: Effective request correlation ID used by backend audit logging.
              schema:
                maxLength: 128
                minLength: 1
                pattern: ^[A-Za-z0-9._:-]{1,128}$
                type: string
                example: 8df31080-3b78-4e63-a67d-c2d107190f3c
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ContractInfoResponse'
components:
  schemas:
    ContractInfoRequest:
      required:
      - address
      - chainId
      type: object
      properties:
        chainId:
          type: integer
          format: int32
        address:
          maxLength: 42
          minLength: 42
          type: string
        type:
          maxLength: 255
          minLength: 0
          type: string
    ContractSyncStatusResponse:
      type: object
      properties:
        contractAddress:
          type: string
        currentBlock:
          type: integer
          format: int64
        targetBlock:
          type: integer
          format: int64
        lastSyncedAt:
          type: string
          format: date-time
        progress:
          type: integer
          format: int32
        syncing:
          type: boolean
    ContractInfoResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        chainId:
          type: integer
          format: int32
        userId:
          type: string
          format: uuid
        address:
          type: string
        type:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT