Uniblock · Capability

Uniblock Unified API — Transactions

Uniblock Unified API — Transactions. 2 operations. Lead operation: Get Transactions. Self-contained Naftiko capability covering one Uniblock business surface.

Run with Naftiko UniblockTransactions

What You Can Do

GET
Gettransactions — Get Transactions
/v1/transactions
GET
Gettransactionbyhash — Get Transaction by Hash
/v1/transactions/{transactionhash}

MCP Tools

get-transactions

Get Transactions

read-only idempotent
get-transaction-hash

Get Transaction by Hash

read-only idempotent

Capability Spec

unified-transactions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Uniblock Unified API — Transactions
  description: 'Uniblock Unified API — Transactions. 2 operations. Lead operation: Get Transactions. Self-contained Naftiko
    capability covering one Uniblock business surface.'
  tags:
  - Uniblock
  - Transactions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    UNIBLOCK_API_KEY: UNIBLOCK_API_KEY
capability:
  consumes:
  - type: http
    namespace: unified-transactions
    baseUri: https://api.uniblock.dev/uni/v1
    description: Uniblock Unified API — Transactions business capability. Self-contained, no shared references.
    resources:
    - name: transactions
      path: /transactions
      operations:
      - name: gettransactions
        method: GET
        description: Get Transactions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: transactions-transactionHash
      path: /transactions/{transactionHash}
      operations:
      - name: gettransactionbyhash
        method: GET
        description: Get Transaction by Hash
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: transactionHash
          in: path
          type: string
          description: The hash of the transaction to retrieve.
          required: true
    authentication:
      type: apikey
      key: x-api-key
      value: '{{env.UNIBLOCK_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: unified-transactions-rest
    port: 8080
    description: REST adapter for Uniblock Unified API — Transactions. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/transactions
      name: transactions
      description: REST surface for transactions.
      operations:
      - method: GET
        name: gettransactions
        description: Get Transactions
        call: unified-transactions.gettransactions
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/transactions/{transactionhash}
      name: transactions-transactionhash
      description: REST surface for transactions-transactionHash.
      operations:
      - method: GET
        name: gettransactionbyhash
        description: Get Transaction by Hash
        call: unified-transactions.gettransactionbyhash
        with:
          transactionHash: rest.transactionHash
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: unified-transactions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Uniblock Unified API — Transactions. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-transactions
      description: Get Transactions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: unified-transactions.gettransactions
      outputParameters:
      - type: object
        mapping: $.
    - name: get-transaction-hash
      description: Get Transaction by Hash
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: unified-transactions.gettransactionbyhash
      with:
        transactionHash: tools.transactionHash
      outputParameters:
      - type: object
        mapping: $.