> ## 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.

# Every registered miner with score, facts, models and endpoint status



## OpenAPI

````yaml /openapi.json get /v1/miners
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:
    get:
      tags:
        - Directory
      summary: Every registered miner with score, facts, models and endpoint status
      operationId: listMiners
      parameters:
        - name: reachable
          in: query
          schema:
            type: boolean
          description: >-
            `true` returns the verified-pairs listing (live, proven miner and
            endpoint pairs; same content as the published artefact). Add
            `view=full` for full miner objects instead.
        - name: view
          in: query
          schema:
            enum:
              - full
        - name: ready
          in: query
          schema:
            type: boolean
          description: Endpoint reports ready to serve.
        - name: active
          in: query
          schema:
            type: boolean
        - name: calibrated
          in: query
          schema:
            type: boolean
          description: Hardware calibration lease is live.
        - name: model
          in: query
          schema:
            type: string
          description: Model id or hash.
        - name: min_score
          in: query
          schema:
            type: number
        - name: sort
          in: query
          schema:
            enum:
              - score
              - reliability
              - settle_rate
              - sessions
              - stake
              - latency
              - capacity
            default: score
        - name: order
          in: query
          schema:
            enum:
              - asc
              - desc
            default: desc
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 1000
            default: 100
        - name: offset
          in: query
          schema:
            type: integer
            minimum: 0
            default: 0
      responses:
        '200':
          description: Miners
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/MinerList'
                  - $ref: '#/components/schemas/VerifiedPairs'
              examples:
                registry:
                  value:
                    object: list
                    network: devnet
                    finalized_block: 4494396
                    total: 762
                    limit: 1
                    offset: 0
                    data:
                      - address: 5D7fTgzoUwc7L9tHt7GSBtE9GNYuP1x8xfMmFQFVwLXp85Tp
                        score: 78.3
                        rank: 1
                        registered: true
                        active: true
                        retired: false
                        blacklisted: false
                        stake:
                          self: '12504.899999999883968'
                          delegated: '0'
                          sponsored: '0'
                          total: '12504.899999999883968'
                        calibration:
                          live: true
                          cap_gflops_per_sec: 34396
                          version: 3
                          tier: Soft
                          accepted_at_block: 4326702
                          expires_at_block: 4931502
                        capacity:
                          cap_gflops_per_sec: 34396
                          busy_channels: 13
                        slashing:
                          strikes: 0
                          total_slashed: '0'
                          failed_acks: 0
                          failed_offer_opens: 0
                        history:
                          sessions_resolved: 69
                          settled: 61
                          timed_out: 8
                          ack_expired: 0
                          refunded: 0
                          voided: 0
                          fraud: 0
                          settle_rate: 0.8841
                          distinct_payers: 3
                          settled_volume: '4.475537138094146403'
                          last_settled_block: 4456556
                          last_opened_block: 4456556
                          outcome_basis:
                            chain_events: 69
                            explorer_indexer: 0
                            chain_storage: 0
                          unclassified: 0
                        models:
                          - hash: >-
                              0x272ed49f5488f15629805df7821140b3b1ad3917d6ccb008add3c65d0095dea9
                            name: Qwen/Qwen3-Coder-30B-A3B-Instruct-FP8
                            id: qwen/qwen3-coder-30b-a3b-instruct-fp8
                            evidence:
                              - signed-offer
                            channels: 82
                            settled: 61
                        live_offers: 2
                        endpoint: null
                        router_measured:
                          reachable: false
                          ready: false
                          probe_success_rate: null
                          proof_latency_ms: null
                          sessions_attempted: 0
                          sessions_with_output: 0
                          sessions_settled: 0
                          session_success_rate: null
                          first_output_ms: null
                        links:
                          account: >-
                            https://explorer.devnet.flop.network/api/miners/5D7fTgzoUwc7L9tHt7GSBtE9GNYuP1x8xfMmFQFVwLXp85Tp
                    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.
                reachable:
                  summary: reachable=true (verified pairs)
                  value:
                    object: list
                    generated_at: '2026-11-24T03:10:11.634Z'
                    network: devnet
                    genesis_hash: >-
                      0x99c172c095340ace980631f9123544c6bebd4839f3437e463533422d8be2d631
                    rpc:
                      - wss://rpc.devnet.flop.network
                    indexer: https://explorer.devnet.flop.network
                    finalized_block: 4494396
                    rule: >-
                      A pair is listed only if the worker at the endpoint
                      returned a fresh signed /session/info-proof naming this
                      chain and a miner account that exists in the on-chain
                      registry. status=live also requires the session key to be
                      tied to that account on chain and a successful probe
                      within the freshness window; unverified means the proof is
                      valid but the key is not yet tied on chain; down means a
                      previously proven pair is failing now.
                    liveness_fresh_seconds: 900
                    counts:
                      candidate_urls: 125
                      pairs: 13
                      live: 7
                      live_and_ready: 1
                      unverified: 4
                      down: 2
                    total: 1
                    data:
                      - address: 5HKiGNFSqSyEMVMjjr8JBKkkppytaqFZCRm27KGbCeHhUq92
                        endpoint: https://miner-002.0xmakase.co.jp
                        models:
                          - Qwen/Qwen3-8B
                        serving_now: qwen/qwen3-8b
                        ready: true
                        reliability: 0.8919
                        reliability_detail:
                          settled: 132
                          resolved: 148
                          timed_out: 15
                          distinct_payers: 20
                          outcome_basis:
                            chain_events: 148
                            explorer_indexer: 0
                            chain_storage: 0
                          unclassified: 0
                        status: live
                        source: seed-issues-2026-11-23
                        sources:
                          - source: seed-issues-2026-11-23
                            first_seen: '2026-11-23T19:06:40.000Z'
                            hinted_miner: 5HKiGNFSqSyEMVMjjr8JBKkkppytaqFZCRm27KGbCeHhUq92
                            verdict: confirmed by proof
                        proof:
                          binding: offer
                          session_key: >-
                            0x0081319ab4bea9d04d6aa502d9ee203499b38dd3b7ec35731639273b8220ad06
                          last_verified: '2026-11-24T03:05:14.000Z'
                          last_checked: '2026-11-24T03:05:14.000Z'
                          info_status: 401
                        registry:
                          registered: true
                          active: true
                          retired: false
                        score: 66.8
                    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.
        '400':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: 400
                  message: >-
                    sort must be one of score, reliability, settle_rate,
                    sessions, stake, latency, capacity
                  metadata:
                    reason: invalid_sort
      security: []
components:
  schemas:
    MinerList:
      type: object
      properties:
        object:
          const: list
        network:
          type: string
        finalized_block:
          type: integer
        total:
          type: integer
        limit:
          type: integer
        offset:
          type: integer
        data:
          type: array
          items:
            $ref: '#/components/schemas/Miner'
        score_note:
          type: string
    VerifiedPairs:
      type: object
      description: >-
        Returned for `reachable=true`: proven (miner, endpoint) pairs with fresh
        liveness.
      properties:
        object:
          const: list
        generated_at:
          type: string
          format: date-time
        network:
          type: string
        rpc:
          type: array
          items:
            type: string
        indexer:
          type: string
        finalized_block:
          type: integer
        rule:
          type: string
        counts:
          type: object
        total:
          type: integer
        data:
          type: array
          items:
            type: object
            properties:
              address:
                type: string
              endpoint:
                type: string
              models:
                type: array
                items:
                  type: string
              serving_now:
                type:
                  - string
                  - 'null'
              ready:
                type: boolean
              reliability:
                type:
                  - number
                  - 'null'
                description: Settled / resolved sessions.
              reliability_detail:
                type:
                  - object
                  - 'null'
              status:
                enum:
                  - live
                  - down
                  - unverified
              source:
                type: string
              sources:
                type: array
                items:
                  type: object
              proof:
                type: object
              registry:
                type: object
              score:
                type:
                  - number
                  - 'null'
    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
    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

````

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