Aeternity Hyperchain API

The Hyperchain API from Aeternity — 8 operation(s) for hyperchain.

Operations 8

GET /hyperchain/epochs Get epochs #
GET /hyperchain/epochs/top Get epoch top #
GET /hyperchain/schedule Get schedules #
GET /hyperchain/schedule/height/{height} Get schedule #
GET /hyperchain/validators Get validators #
GET /hyperchain/validators/{validator} Get validator #
GET /hyperchain/validators/{validator}/delegates Get validator delegates #
GET /hyperchain/validators/{validator}/delegates/top Get top validator delegates #

Documentation

Specifications

Other Resources

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/aeternity-hyperchain-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

aeternity-hyperchain-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: API for Aeternity Middleware
  title: Aeternity Middleware Hyperchain API
  version: 1.108.2
servers:
- url: https://mainnet.aeternity.io/mdw/v3
  description: Mainnet middleware
- url: https://testnet.aeternity.io/mdw/v3
  description: Testnet middleware
tags:
- name: Hyperchain
paths:
  /hyperchain/epochs:
    get:
      deprecated: false
      description: Get Epoch information
      operationId: GetEpochs
      parameters:
      - $ref: '#/components/parameters/DirectionParam'
      - $ref: '#/components/parameters/LimitParam'
      - $ref: '#/components/parameters/HyperchainScopeParam'
      responses:
        '200':
          description: Returns paginated list of information about Epochs
          content:
            application/json:
              schema:
                allOf:
                - type: object
                  required:
                  - data
                  properties:
                    data:
                      type: array
                      items:
                        $ref: '#/components/schemas/EpochInfo'
                - $ref: '#/components/schemas/PaginatedResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      tags:
      - Hyperchain
      summary: Get epochs
      x-summary-source: derived
  /hyperchain/epochs/top:
    get:
      deprecated: false
      description: Get Top Epoch information
      operationId: GetEpochTop
      responses:
        '200':
          description: Returns information about the top epoch
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EpochInfo'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      tags:
      - Hyperchain
      summary: Get epoch top
      x-summary-source: derived
  /hyperchain/schedule:
    get:
      deprecated: false
      description: Get Schedule information
      operationId: GetSchedules
      parameters:
      - $ref: '#/components/parameters/DirectionParam'
      - $ref: '#/components/parameters/LimitParam'
      - $ref: '#/components/parameters/HyperchainScopeParam'
      responses:
        '200':
          description: Returns schedule information
          content:
            application/json:
              schema:
                allOf:
                - type: object
                  required:
                  - data
                  properties:
                    data:
                      type: array
                      items:
                        $ref: '#/components/schemas/Schedule'
                - $ref: '#/components/schemas/PaginatedResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      tags:
      - Hyperchain
      summary: Get schedules
      x-summary-source: derived
  /hyperchain/schedule/height/{height}:
    get:
      deprecated: false
      description: Get Schedule information
      operationId: GetSchedule
      parameters:
      - name: height
        in: path
        description: Schedule height
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Returns schedule information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Schedule'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      tags:
      - Hyperchain
      summary: Get schedule
      x-summary-source: derived
  /hyperchain/validators:
    get:
      deprecated: false
      description: Get Validators information
      operationId: GetValidators
      parameters:
      - $ref: '#/components/parameters/DirectionParam'
      - $ref: '#/components/parameters/LimitParam'
      - $ref: '#/components/parameters/HyperchainScopeParam'
      responses:
        '200':
          description: Returns validator information
          content:
            application/json:
              schema:
                allOf:
                - type: object
                  required:
                  - data
                  properties:
                    data:
                      type: array
                      items:
                        $ref: '#/components/schemas/Validator'
                - $ref: '#/components/schemas/PaginatedResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      tags:
      - Hyperchain
      summary: Get validators
      x-summary-source: derived
  /hyperchain/validators/{validator}:
    get:
      deprecated: false
      description: Get Validator information
      operationId: GetValidator
      parameters:
      - name: validator
        in: path
        description: Validator address
        required: true
        schema:
          $ref: '#/components/schemas/AccountAddress'
      responses:
        '200':
          description: Returns validator information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Validator'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      tags:
      - Hyperchain
      summary: Get validator
      x-summary-source: derived
  /hyperchain/validators/{validator}/delegates:
    get:
      deprecated: false
      description: Get Delegates information for validator
      operationId: GetValidatorDelegates
      parameters:
      - name: validator
        in: path
        description: Validator address
        required: true
        schema:
          $ref: '#/components/schemas/AccountAddress'
      - $ref: '#/components/parameters/DirectionParam'
      - $ref: '#/components/parameters/LimitParam'
      - $ref: '#/components/parameters/HyperchainScopeParam'
      responses:
        '200':
          description: Returns delegates information
          content:
            application/json:
              schema:
                allOf:
                - type: object
                  required:
                  - data
                  properties:
                    data:
                      type: array
                      items:
                        $ref: '#/components/schemas/Delegate'
                - $ref: '#/components/schemas/PaginatedResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      tags:
      - Hyperchain
      summary: Get validator delegates
      x-summary-source: derived
  /hyperchain/validators/{validator}/delegates/top:
    get:
      deprecated: false
      description: Get top Delegates information for validator
      operationId: GetTopValidatorDelegates
      parameters:
      - name: validator
        in: path
        description: Validator address
        required: true
        schema:
          $ref: '#/components/schemas/AccountAddress'
      - $ref: '#/components/parameters/DirectionParam'
      - $ref: '#/components/parameters/LimitParam'
      - $ref: '#/components/parameters/HyperchainScopeParam'
      responses:
        '200':
          description: Returns top validator delegates information
          content:
            application/json:
              schema:
                allOf:
                - type: object
                  required:
                  - data
                  properties:
                    data:
                      type: array
                      items:
                        $ref: '#/components/schemas/Delegate'
                - $ref: '#/components/schemas/PaginatedResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      tags:
      - Hyperchain
      summary: Get top validator delegates
      x-summary-source: derived
components:
  schemas:
    AccountAddress:
      description: Account address
      type: string
      example: ak_psy8tRXPzGxh6975H7K6XQcMFVsdrxJMt7YkzMY8oUTevutzw
      pattern: ^ak_\w{38,50}$
    Validator:
      description: Validator information
      type: object
      properties:
        epoch:
          type: integer
          example: 1
        validator:
          type: string
          example: ak_1111111111111111111111111111111111111111111111111
        total_stakes:
          type: integer
          example: 1000000000000000000
        delegates:
          type: integer
          example: 5
        rewards_earned:
          type: integer
          example: 1000000000000000000
        pinning_history:
          type: object
          additionalProperties:
            type: integer
          example:
            '1': 1000000000000000000
            '2': 2000000000000000000
      required:
      - epoch
      - validator
      - total_stakes
      - delegates
      - rewards_earned
      - pinning_history
    Delegate:
      description: Delegate information
      type: object
      properties:
        epoch:
          type: integer
          example: 1
        delegate:
          type: string
          example: ak_1111111111111111111111111111111111111111111111111
        stake:
          type: integer
          example: 1000000000000000000
        validator:
          type: string
          example: ak_1111111111111111111111111111111111111111111111111
      required:
      - epoch
      - delegate
      - stake
      - validator
    Schedule:
      description: Schedule information
      type: object
      properties:
        height:
          type: integer
          example: 1
        leader:
          type: string
          example: ak_1111111111111111111111111111111111111111111111111
      required:
      - height
      - leader
    ErrorResponse:
      description: Error response from the API
      type: object
      example:
        error: 'invalid id: th_2Twp3pJeVuwQ7cMSdPQRfpAUWwdMiwx6coVMpRaNSuzFRnDZF'
      properties:
        error:
          description: The message of the error raised
          type: string
      required:
      - error
      title: Error response
    PaginatedResponse:
      type: object
      properties:
        next:
          type:
          - string
          - 'null'
          example: /blocks?cursor=123
        prev:
          type:
          - string
          - 'null'
          example: /blocks?cursor=234
      required:
      - next
      - prev
    EpochInfo:
      description: Epoch information
      type: object
      properties:
        epoch:
          type: integer
          example: 1
        first:
          type: integer
          example: 1
        last:
          type: integer
          example: 10
        length:
          type: integer
          example: 10
        seed:
          type: string
          example: kh_1111111111111111111111111111111111111111111111111
        last_pin_height:
          type: integer
          example: 10
        parent_block_hash:
          type: string
          example: kh_1111111111111111111111111111111111111111111111111
        last_leader:
          type: string
          example: ak_1111111111111111111111111111111111111111111111111
        epoch_start_time:
          type: integer
          example: 1629820800000
        validators:
          type: array
          items:
            type: object
            properties:
              validator:
                type: string
                example: ak_1111111111111111111111111111111111111111111111111
              stake:
                type: integer
                example: 1000000000000000000
      required:
      - epoch
      - first
      - last
      - length
      - seed
      - last_pin_height
      - parent_block_hash
      - last_leader
      - epoch_start_time
      - validators
  parameters:
    DirectionParam:
      in: query
      name: direction
      description: Sorts results in forwards or backwards direction
      schema:
        type: string
        enum:
        - forward
        - backward
    HyperchainScopeParam:
      in: query
      name: scope
      description: Scopes results in a hyperchain epoch range
      schema:
        type: string
        pattern: (epoch):\d+(-\d+)?
    LimitParam:
      in: query
      name: limit
      description: Limit paginated resources (max 100)
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 10