Chainlens · Capability

Chainlens — Block-Transactions-Controller

Chainlens — Block-Transactions-Controller. 1 operations. Lead operation: Chainlens Retrieve all transactions for this block.. Self-contained Naftiko capability covering one Chainlens business surface.

Run with Naftiko ChainlensBlock-Transactions-Controller

What You Can Do

GET
Getblocktransactions — Chainlens Retrieve all transactions for this block.
/v1/blocks/{blockhash}/transactions

MCP Tools

chainlens-retrieve-all-transactions-this

Chainlens Retrieve all transactions for this block.

read-only idempotent

Capability Spec

chainlens-block-transactions-controller.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Chainlens — Block-Transactions-Controller
  description: 'Chainlens — Block-Transactions-Controller. 1 operations. Lead operation: Chainlens Retrieve all transactions
    for this block.. Self-contained Naftiko capability covering one Chainlens business surface.'
  tags:
  - Chainlens
  - Block-Transactions-Controller
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CHAINLENS_API_KEY: CHAINLENS_API_KEY
capability:
  consumes:
  - type: http
    namespace: chainlens-block-transactions-controller
    baseUri: ''
    description: Chainlens — Block-Transactions-Controller business capability. Self-contained, no shared references.
    resources:
    - name: blocks-blockHash-transactions
      path: /blocks/{blockHash}/transactions
      operations:
      - name: getblocktransactions
        method: GET
        description: Chainlens Retrieve all transactions for this block.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: blockHash
          in: path
          type: string
          description: The address hash or height identifying the block.
          required: true
        - name: query
          in: query
          type: string
          required: true
  exposes:
  - type: rest
    namespace: chainlens-block-transactions-controller-rest
    port: 8080
    description: REST adapter for Chainlens — Block-Transactions-Controller. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/blocks/{blockhash}/transactions
      name: blocks-blockhash-transactions
      description: REST surface for blocks-blockHash-transactions.
      operations:
      - method: GET
        name: getblocktransactions
        description: Chainlens Retrieve all transactions for this block.
        call: chainlens-block-transactions-controller.getblocktransactions
        with:
          blockHash: rest.blockHash
          query: rest.query
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: chainlens-block-transactions-controller-mcp
    port: 9090
    transport: http
    description: MCP adapter for Chainlens — Block-Transactions-Controller. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: chainlens-retrieve-all-transactions-this
      description: Chainlens Retrieve all transactions for this block.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: chainlens-block-transactions-controller.getblocktransactions
      with:
        blockHash: tools.blockHash
        query: tools.query
      outputParameters:
      - type: object
        mapping: $.