> ## Documentation Index
> Fetch the complete documentation index at: https://docs.floprouter.com/llms.txt
> Use this file to discover all available pages before exploring further.

# One miner in detail



## OpenAPI

````yaml /openapi.json get /v1/miners/{address}
openapi: 3.1.0
info:
  title: floprouter API
  version: 1.0.0
  description: >-
    The floprouter API routes chat requests to FLOP Network miners and settles
    each one on chain. One request format covers every model: chat completions
    with `provider` preferences and a `models` fallback list, model objects, a
    generation lookup, one error format and one streaming format. FLOP's own
    concepts have their own routes: miners, sessions on payment channels,
    session-key grants, the prepaid FLOP balance, settlement and on-chain
    attribution. **Base paths**: `/api/v1/...` and `/v1/...` serve the same
    routes; this document lists them under `/v1`. **Payer modes** (per key,
    overridable per request with `flop.payer`):

    - `grant`: the caller's wallet is the on-chain payer (channel `agent`) of
    every session. The wallet signs one `flopSessionKeys.createSession` grant to
    the router's delegate (`GET /v1/grants/params` returns the exact call data);
    the router then opens channels within the grant's caps. The escrow is paid
    on chain from the wallet; only the router fee comes from the prepaid
    balance. - `credit`: the router's wallet pays the session on chain; escrow
    and router fee are taken from the prepaid balance. **Balance**: fund it with
    a plain FLOP transfer from your wallet to `deposit_address` (`GET
    /v1/balance`); it is credited once the block is finalized. Withdraw with
    `POST /v1/balance/withdraw` (to the owning wallet only). Every balance can
    be recomputed from finalized chain state: billed sessions carry an encrypted
    ledger tag on chain, and the service checks its ledger against the chain
    continuously. The router fee is `fee_percent` of the session's escrow,
    charged only when the channel settles paid. **One request shape for every
    model**: the router chooses the chat envelope, template version, token
    limits and parameter support per model from what the chain and the miner's
    signed info say. Parameters a model does not support (see its
    `supported_parameters`) are ignored and named in
    `X-Floprouter-Ignored-Parameters`; `provider.require_parameters` refuses
    them instead. **Cost** (`usage.cost`, in FLOP): the escrow (prompt plus
    `max_tokens` at the model's price, paid in full on a cooperative settle)
    plus the router fee. Final once the session settles; a refunded session
    costs 0. **Timing**: a proxy in front closes responses idle for 100 s.
    Non-streaming calls answer within about 85 s: with the verified reply, or
    with HTTP 202 and the generation id to poll (`GET /v1/generation?id=`).
    Streams send `: FLOPROUTER PROCESSING` comments at least every 15 s.
    **Streaming**: chat completion chunks ending in a usage chunk (one choice
    repeating `finish_reason`) and `data: [DONE]`. Text is forwarded as the
    miner streams it and is provisional until the turn's signed receipt is
    verified at the end of the turn. A mid-stream error is one chunk with a
    top-level `error` and `finish_reason: "error"`. **Errors**: `{"error":
    {"code": <HTTP status>, "message", "metadata": {"reason", ...}}}`; 429 and
    503 carry `Retry-After`. **Miner score**: computed by the router from
    on-chain facts only (settlement history, volume, stake, slashing record,
    calibration state). The raw facts are returned beside it. **Client
    libraries**: the chat endpoint uses the widely used chat completions request
    and response format, so any client library for that format works with
    `baseURL` set to `https://api.floprouter.com/api/v1` and a floprouter key.
  license:
    name: Proprietary
    identifier: LicenseRef-Proprietary
servers:
  - url: https://api.floprouter.com
    description: API used by this site
security: []
tags:
  - name: Inference
    description: Chat completions and sessions.
  - name: Models
    description: >-
      Models, with their prices, limits and supported parameters, and the miners
      serving each.
  - name: Auth
    description: Wallet-signed API keys.
  - name: Grants
    description: 'Grant payer mode: the wallet stays the on-chain payer.'
  - name: Balance
    description: Prepaid balance and ledger.
  - name: Directory
    description: No key needed.
  - name: Service
    description: Health and this document.
paths:
  /v1/miners/{address}:
    get:
      tags:
        - Directory
      summary: One miner in detail
      operationId: getMiner
      parameters:
        - name: address
          in: path
          required: true
          schema:
            type: string
          description: Miner account (SS58).
      responses:
        '200':
          description: Miner
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Miner'
              example:
                address: 5HKiGNFSqSyEMVMjjr8JBKkkppytaqFZCRm27KGbCeHhUq92
                score: 66.8
                rank: 3
                registered: true
                active: true
                retired: false
                blacklisted: false
                stake:
                  self: '10000'
                  delegated: '1000004.1'
                  sponsored: '1000003'
                  total: '2010007.1'
                calibration:
                  live: true
                  cap_gflops_per_sec: 495922
                  version: 6
                  tier: Soft
                  accepted_at_block: 4407477
                  expires_at_block: 5012277
                capacity:
                  cap_gflops_per_sec: 495922
                  busy_channels: 18
                slashing:
                  strikes: 0
                  total_slashed: '0'
                  failed_acks: 0
                  failed_offer_opens: 2
                history:
                  sessions_resolved: 148
                  settled: 132
                  timed_out: 15
                  ack_expired: 0
                  refunded: 0
                  voided: 0
                  fraud: 1
                  settle_rate: 0.8919
                  distinct_payers: 20
                  settled_volume: '570.164790000175414502'
                  last_settled_block: 4494127
                  last_opened_block: 4494127
                  outcome_basis:
                    chain_events: 148
                    explorer_indexer: 0
                    chain_storage: 0
                  unclassified: 0
                models:
                  - hash: >-
                      0xfab8ec57f3bc1b5d4ca644fe12fab2ca1c35c24697d577c610b382cfea14d52d
                    name: Qwen/Qwen3-8B
                    id: qwen/qwen3-8b
                    evidence:
                      - signed-info-proof
                      - signed-offer
                    channels: 62
                    settled: 51
                  - hash: >-
                      0x1a52c1abe781db051e70ae357f72bb70161ca0c092df0b618f22a9292ba63306
                    name: Qwen/Qwen2.5-0.5B-Instruct
                    id: qwen/qwen2.5-0.5b-instruct
                    evidence:
                      - channel-history
                    channels: 103
                    settled: 81
                live_offers: 2
                endpoint:
                  url: https://miner-002.0xmakase.co.jp
                  status: live
                  ready: true
                  last_verified: '2026-11-24T03:05:14.000Z'
                  source: seed-issues-2026-11-23
                router_measured:
                  reachable: true
                  ready: true
                  probe_success_rate: 0.984
                  proof_latency_ms: 776
                  sessions_attempted: 40
                  sessions_with_output: 20
                  sessions_settled: 18
                  session_success_rate: 0.5
                  first_output_ms: 33396
                links:
                  account: >-
                    https://explorer.devnet.flop.network/api/miners/5HKiGNFSqSyEMVMjjr8JBKkkppytaqFZCRm27KGbCeHhUq92
                endpoints:
                  - url: https://miner-002.0xmakase.co.jp
                    status: live
                    ready: true
                    binding: offer
                    model: qwen/qwen3-8b
                    model_hash: >-
                      0xfab8ec57f3bc1b5d4ca644fe12fab2ca1c35c24697d577c610b382cfea14d52d
                    source: seed-issues-2026-11-23
                    sources:
                      - source: seed-issues-2026-11-23
                        first_seen: '2026-11-23T19:06:40.000Z'
                      - source: submission
                        first_seen: '2026-11-23T19:42:47.000Z'
                    first_seen: '2026-11-23T19:06:58.000Z'
                    last_verified: '2026-11-24T03:05:14.000Z'
                    last_checked: '2026-11-24T03:05:14.000Z'
                    proof_latency_ms: 776
                    probe_success_rate: 0.984
                    worker_image: 0.1.418
                    last_error: null
                registered_at_block: 1468857
                commission: 0.1
                calibration_canaries:
                  issued: 10127
                  completed: 10118
                  expired: 9
                  incorrect: 0
                updated_at_block: 4494065
                scored_at_block: 4494378
                recent_channels:
                  - id: >-
                      0xcfa6c2a77dd2161509456d82bb907817b046915fd7473d9b0e3bcc4ad4601b75
                    payer: 5GmdxzsmKFi31y1qXYJfxmeBvDoUhxR6D4DnVxbAUjQ8RNnw
                    model_hash: >-
                      0xfab8ec57f3bc1b5d4ca644fe12fab2ca1c35c24697d577c610b382cfea14d52d
                    escrow: '0.01'
                    opened_block: 4494127
                    outcome: settled
                    outcome_block: 4494294
                    miner_paid: '0.0085'
                    model: Qwen/Qwen3-8B
                  - id: >-
                      0xcddfd0102e2155f8e604bf7b0ad1c22a204112b2be7de6a0f374faa5c3f42e33
                    payer: 5F29vNoqgKpXxgUyz4DXifLnfAPQUQCq3ZQXGVjVbxp7sWBS
                    model_hash: >-
                      0xfab8ec57f3bc1b5d4ca644fe12fab2ca1c35c24697d577c610b382cfea14d52d
                    escrow: '0.01'
                    opened_block: 4493712
                    outcome: settled
                    outcome_block: 4493761
                    miner_paid: '0.0085'
                    model: Qwen/Qwen3-8B
                score_note: >-
                  score (0-100) and rank are computed by the router from
                  on-chain facts only: settlement history, volume, stake,
                  slashing record and calibration state. The raw facts are
                  returned beside it. Router-measured facts (reachability,
                  latency, our own success rate) are reported separately under
                  router_measured.
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: 404
                  message: no such miner in the on-chain registry
                  metadata:
                    reason: miner_not_found
      security: []
components:
  schemas:
    Miner:
      type: object
      properties:
        address:
          type: string
        score:
          type:
            - number
            - 'null'
          minimum: 0
          maximum: 100
          description: Router score from on-chain facts only. Higher is better.
        rank:
          type:
            - integer
            - 'null'
          description: Position by score among registered miners.
        registered:
          type: boolean
        active:
          type: boolean
        retired:
          type: boolean
        blacklisted:
          type: boolean
        stake:
          type: object
          properties:
            self:
              type:
                - string
                - 'null'
              description: Decimal amount in FLOP.
              examples:
                - '0.01'
            delegated:
              type:
                - string
                - 'null'
              description: Decimal amount in FLOP.
              examples:
                - '0.01'
            sponsored:
              type:
                - string
                - 'null'
              description: Decimal amount in FLOP.
              examples:
                - '0.01'
            total:
              type:
                - string
                - 'null'
              description: Decimal amount in FLOP.
              examples:
                - '0.01'
        calibration:
          type: object
          properties:
            live:
              type: boolean
            cap_gflops_per_sec:
              type:
                - integer
                - 'null'
            version:
              type:
                - integer
                - 'null'
            tier:
              type:
                - string
                - 'null'
            accepted_at_block:
              type:
                - integer
                - 'null'
            expires_at_block:
              type:
                - integer
                - 'null'
        capacity:
          type: object
          properties:
            cap_gflops_per_sec:
              type:
                - integer
                - 'null'
            busy_channels:
              type: integer
        slashing:
          type: object
          properties:
            strikes:
              type: integer
            total_slashed:
              type:
                - string
                - 'null'
              description: Decimal amount in FLOP.
              examples:
                - '0.01'
            failed_acks:
              type: integer
            failed_offer_opens:
              type: integer
        history:
          type:
            - object
            - 'null'
          description: Raw settlement facts.
          properties:
            sessions_resolved:
              type: integer
            settled:
              type: integer
            timed_out:
              type: integer
            ack_expired:
              type: integer
            refunded:
              type: integer
            voided:
              type: integer
            fraud:
              type: integer
            settle_rate:
              type:
                - number
                - 'null'
            distinct_payers:
              type: integer
            settled_volume:
              type:
                - string
                - 'null'
              description: Decimal amount in FLOP.
              examples:
                - '0.01'
            last_settled_block:
              type:
                - integer
                - 'null'
            last_opened_block:
              type:
                - integer
                - 'null'
            outcome_basis:
              type: object
              description: >-
                How many of the outcomes come from finalized chain events
                (exact), the explorer indexer (provisional) or chain storage.
              properties:
                chain_events:
                  type: integer
                explorer_indexer:
                  type: integer
                chain_storage:
                  type: integer
            unclassified:
              type: integer
              description: Closed channels whose outcome is not yet known from any source.
        models:
          type: array
          items:
            type: object
            properties:
              hash:
                type: string
              name:
                type:
                  - string
                  - 'null'
              id:
                type:
                  - string
                  - 'null'
              evidence:
                type: array
                items:
                  enum:
                    - signed-info-proof
                    - signed-offer
                    - channel-history
                    - model-registry
              channels:
                type: integer
              settled:
                type: integer
        live_offers:
          type: integer
        endpoint:
          type:
            - string
            - object
            - 'null'
        router_measured:
          type: object
          description: Measured by this router; not part of the score.
          properties:
            reachable:
              type: boolean
            ready:
              type: boolean
            probe_success_rate:
              type:
                - number
                - 'null'
            proof_latency_ms:
              type:
                - integer
                - 'null'
            sessions_attempted:
              type: integer
            sessions_with_output:
              type: integer
            sessions_settled:
              type: integer
            session_success_rate:
              type:
                - number
                - 'null'
            first_output_ms:
              type:
                - integer
                - 'null'
              description: Mean time to the first verified output.
        links:
          type: object
        endpoints:
          type: array
          description: Detail view only.
          items:
            type: object
        recent_channels:
          type: array
          description: Detail view only.
          items:
            type: object
    Error:
      type: object
      description: >-
        `code` is the HTTP status; `metadata.reason` is floprouter's specific
        reason.
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: integer
              examples:
                - 400
                - 401
                - 402
                - 403
                - 404
                - 408
                - 409
                - 413
                - 429
                - 502
                - 503
            message:
              type: string
            metadata:
              type: object
              properties:
                reason:
                  type: string
                  examples:
                    - insufficient_balance
                    - grant_expired
                    - all_attempts_failed
                    - no_provider_supports_parameters
                    - tools_not_supported
                    - model_not_found
                    - rate_limited
                    - withdrawal_in_progress
                session_id:
                  type: string
              additionalProperties: true

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.