Hiro · Capability

Stacks Blockchain API — Fees

Stacks Blockchain API — Fees. 1 operations. Lead operation: Fetch fee rate. Self-contained Naftiko capability covering one Hiro business surface.

Run with Naftiko HiroFees

What You Can Do

POST
Fetchfeerate — Fetch fee rate
/v1/extended/v1/fee-rate

MCP Tools

fetch-fee-rate

Fetch fee rate

read-only

Capability Spec

stacks-blockchain-fees.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Stacks Blockchain API — Fees
  description: 'Stacks Blockchain API — Fees. 1 operations. Lead operation: Fetch fee rate. Self-contained Naftiko capability
    covering one Hiro business surface.'
  tags:
  - Hiro
  - Fees
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HIRO_API_KEY: HIRO_API_KEY
capability:
  consumes:
  - type: http
    namespace: stacks-blockchain-fees
    baseUri: https://api.hiro.so
    description: Stacks Blockchain API — Fees business capability. Self-contained, no shared references.
    resources:
    - name: extended-v1-fee_rate
      path: /extended/v1/fee_rate/
      operations:
      - name: fetchfeerate
        method: POST
        description: Fetch fee rate
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
  exposes:
  - type: rest
    namespace: stacks-blockchain-fees-rest
    port: 8080
    description: REST adapter for Stacks Blockchain API — Fees. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/extended/v1/fee-rate
      name: extended-v1-fee-rate
      description: REST surface for extended-v1-fee_rate.
      operations:
      - method: POST
        name: fetchfeerate
        description: Fetch fee rate
        call: stacks-blockchain-fees.fetchfeerate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: stacks-blockchain-fees-mcp
    port: 9090
    transport: http
    description: MCP adapter for Stacks Blockchain API — Fees. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: fetch-fee-rate
      description: Fetch fee rate
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: stacks-blockchain-fees.fetchfeerate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.