Hiro · Capability

Signer Metrics API — Blocks

Signer Metrics API — Blocks. 2 operations. Lead operation: Aggregated signer information for most recent blocks. Self-contained Naftiko capability covering one Hiro business surface.

Run with Naftiko HiroBlocks

What You Can Do

GET
Getblocks — Aggregated signer information for most recent blocks
/v1/signer-metrics/v1/blocks
GET
Getblock — Aggregated signer information for a block
/v1/signer-metrics/v1/blocks/{height-or-hash}

MCP Tools

aggregated-signer-information-most-recent

Aggregated signer information for most recent blocks

read-only idempotent
aggregated-signer-information-block

Aggregated signer information for a block

read-only idempotent

Capability Spec

signer-metrics-blocks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Signer Metrics API — Blocks
  description: 'Signer Metrics API — Blocks. 2 operations. Lead operation: Aggregated signer information for most recent blocks.
    Self-contained Naftiko capability covering one Hiro business surface.'
  tags:
  - Hiro
  - Blocks
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HIRO_API_KEY: HIRO_API_KEY
capability:
  consumes:
  - type: http
    namespace: signer-metrics-blocks
    baseUri: https://api.hiro.so
    description: Signer Metrics API — Blocks business capability. Self-contained, no shared references.
    resources:
    - name: signer-metrics-v1-blocks
      path: /signer-metrics/v1/blocks
      operations:
      - name: getblocks
        method: GET
        description: Aggregated signer information for most recent blocks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: Number of results to return
          required: true
        - name: offset
          in: query
          type: integer
          description: Number of results to skip
          required: true
    - name: signer-metrics-v1-blocks-height_or_hash
      path: /signer-metrics/v1/blocks/{height_or_hash}
      operations:
      - name: getblock
        method: GET
        description: Aggregated signer information for a block
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: height_or_hash
          in: path
          type: string
          required: true
  exposes:
  - type: rest
    namespace: signer-metrics-blocks-rest
    port: 8080
    description: REST adapter for Signer Metrics API — Blocks. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/signer-metrics/v1/blocks
      name: signer-metrics-v1-blocks
      description: REST surface for signer-metrics-v1-blocks.
      operations:
      - method: GET
        name: getblocks
        description: Aggregated signer information for most recent blocks
        call: signer-metrics-blocks.getblocks
        with:
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/signer-metrics/v1/blocks/{height-or-hash}
      name: signer-metrics-v1-blocks-height-or-hash
      description: REST surface for signer-metrics-v1-blocks-height_or_hash.
      operations:
      - method: GET
        name: getblock
        description: Aggregated signer information for a block
        call: signer-metrics-blocks.getblock
        with:
          height_or_hash: rest.height_or_hash
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: signer-metrics-blocks-mcp
    port: 9090
    transport: http
    description: MCP adapter for Signer Metrics API — Blocks. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: aggregated-signer-information-most-recent
      description: Aggregated signer information for most recent blocks
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: signer-metrics-blocks.getblocks
      with:
        limit: tools.limit
        offset: tools.offset
      outputParameters:
      - type: object
        mapping: $.
    - name: aggregated-signer-information-block
      description: Aggregated signer information for a block
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: signer-metrics-blocks.getblock
      with:
        height_or_hash: tools.height_or_hash
      outputParameters:
      - type: object
        mapping: $.