Hive Civilization Mining API

The mining API from Hive Civilization — 8 operation(s) for mining.

Operations 8

GET /v1/mining/scan Mining Scan #
POST /v1/mining/route Mining Route #
POST /v1/mining/book Mining Book #
GET /v1/mining/pnl Mining Pnl #
GET /v1/mining/fee-intel Mining Fee Intel #
GET /v1/mining/next-block-advice Mining Next Block Advice #
GET /v1/mining/economics Mining Economics #
POST /v1/mining/payout Mining Payout #

Documentation

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/thehiveryiq-com-mining-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

thehiveryiq-com-mining-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: HiveMorph v0.1 Mining API
  description: 'Polymorphic agent runtime — single shape (Merchant), single supermodel (W2 MERCHANT). Three gates: NEED + YIELD + CLEAN-MONEY.'
  version: 0.1.0
tags:
- name: Mining
paths:
  /v1/mining/scan:
    get:
      tags:
      - Mining
      summary: Mining Scan
      description: 'Tier 0: list MDK workers and Hive auction offers (no fee).'
      operationId: mining_scan_v1_mining_scan_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/mining/route:
    post:
      tags:
      - Mining
      summary: Mining Route
      description: 'Tier 0: rank destinations for a fleet. 2% fee taken at /book, not here.'
      operationId: mining_route_v1_mining_route_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/hivemorph__hive_mining__routes__RouteRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/mining/book:
    post:
      tags:
      - Mining
      summary: Mining Book
      description: '$0.05 USDC: book hashrate. Three-gated. 2% routing fee. Real EIP-191 receipt.'
      operationId: mining_book_v1_mining_book_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/hivemorph__hive_mining__routes__BookRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/mining/pnl:
    get:
      tags:
      - Mining
      summary: Mining Pnl
      operationId: mining_pnl_v1_mining_pnl_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/mining/fee-intel:
    get:
      tags:
      - Mining
      summary: Mining Fee Intel
      description: '$0.02 USDC: Bortlesboat fee landscape + nextblock combined.'
      operationId: mining_fee_intel_v1_mining_fee_intel_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/mining/next-block-advice:
    get:
      tags:
      - Mining
      summary: Mining Next Block Advice
      description: '$0.03 USDC: combine our auction state with Satoshi /ai/fees/advice.'
      operationId: mining_next_block_advice_v1_mining_next_block_advice_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/mining/economics:
    get:
      tags:
      - Mining
      summary: Mining Economics
      description: 'Tier 0: daily revenue + Satoshi spend. Internal monitoring.'
      operationId: mining_economics_v1_mining_economics_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/mining/payout:
    post:
      tags:
      - Mining
      summary: Mining Payout
      description: 'Boltz reverse swap BTC → USDC on Base. 40bps Hive spread fee.


        Tier 0 endpoint — fee is captured in the swap math, not at the gate.

        Real swap or HTTP 503. We never custody BTC.'
      operationId: mining_payout_v1_mining_payout_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PayoutRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    PayoutRequest:
      properties:
        btc_amount_sats:
          type: integer
          maximum: 2100000000000000.0
          exclusiveMinimum: 0.0
          title: Btc Amount Sats
        recipient_usdc_address:
          type: string
          title: Recipient Usdc Address
      type: object
      required:
      - btc_amount_sats
      - recipient_usdc_address
      title: PayoutRequest
    hivemorph__hive_mining__routes__BookRequest:
      properties:
        worker_id:
          type: string
          minLength: 1
          title: Worker Id
        hashrate_th_s:
          type: number
          exclusiveMinimum: 0.0
          title: Hashrate Th S
        duration_minutes:
          type: integer
          maximum: 43200.0
          exclusiveMinimum: 0.0
          title: Duration Minutes
        payer_address:
          type: string
          title: Payer Address
        settle_asset:
          type: string
          title: Settle Asset
          default: USDC
      type: object
      required:
      - worker_id
      - hashrate_th_s
      - duration_minutes
      - payer_address
      title: BookRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    hivemorph__hive_mining__routes__RouteRequest:
      properties:
        energy_cost_usdc_per_kwh:
          type: number
          maximum: 2.0
          exclusiveMinimum: 0.0
          title: Energy Cost Usdc Per Kwh
        region:
          type: string
          title: Region
          default: any
        fleet_size_th_s:
          type: number
          maximum: 10000000.0
          exclusiveMinimum: 0.0
          title: Fleet Size Th S
      type: object
      required:
      - energy_cost_usdc_per_kwh
      - fleet_size_th_s
      title: RouteRequest