Hive Civilization Mining API

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

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/mining/scan Scan mining workers and hashrate offers · Mining Scan #
Ask an LLM
“Which mining workers and hashrate auction offers are available right now?”
“Is there a free way to see the MDK workers before booking hashrate?”
Tell an agent
Scan the available mining workers and auction offers.
List MDK workers and hashrate offers.
POST /v1/mining/route Rank mining destinations for a fleet · Mining Route #
Ask an LLM
“Where should my mining fleet point its hashrate given my energy cost?”
“Can I rank mining destinations for a region without paying a routing fee?”
Tell an agent
Rank destinations for a {fleet_size_th_s} TH/s fleet paying {energy_cost_usdc_per_kwh} USDC per kWh.
Route a {fleet_size_th_s} TH/s fleet in {region} at {energy_cost_usdc_per_kwh} USDC/kWh.
POST /v1/mining/book Book hashrate from a mining worker · Mining Book #
Ask an LLM
“How do I book hashrate from a worker for a set number of minutes?”
“What fee and receipt do I get when I book mining hashrate?”
Tell an agent
Book {hashrate_th_s} TH/s from worker {worker_id} for {duration_minutes} minutes, paid by {payer_address}.
Book worker {worker_id} at {hashrate_th_s} TH/s for {duration_minutes} minutes from {payer_address}, settling in {settle_asset}.
GET /v1/mining/pnl View mining profit and loss · Mining Pnl #
Ask an LLM
“What is the profit and loss on mining so far?”
“Is the hashrate routing business making or losing money?”
Tell an agent
Show the mining P&L.
Report mining profit and loss.
GET /v1/mining/fee-intel Get Bitcoin fee intelligence · Mining Fee Intel #
Ask an LLM
“What does the current Bitcoin fee landscape look like alongside next-block fees?”
“Is there a paid feed combining fee landscape and next-block data?”
Tell an agent
Get the mining fee intel report.
Show combined fee landscape and next-block fee data.
GET /v1/mining/next-block-advice Get next-block fee advice · Mining Next Block Advice #
Ask an LLM
“What fee should I target to land in the next Bitcoin block?”
“Can I get next-block advice that factors in the hashrate auction state?”
Tell an agent
Get next-block advice.
Advise me on fees for the next block using the auction state.
GET /v1/mining/economics View daily mining revenue and spend · Mining Economics #
Ask an LLM
“What is the daily mining revenue and how much was spent on fee data?”
“Where can I monitor the mining desk's economics?”
Tell an agent
Show mining economics for today.
Report daily mining revenue and data spend.
POST /v1/mining/payout Swap mined BTC to USDC on Base · Mining Payout #
Ask an LLM
“How do I convert mined bitcoin into USDC on Base?”
“What spread is charged when paying out BTC as USDC?”
Tell an agent
Pay out {btc_amount_sats} sats as USDC to {recipient_usdc_address}.
Swap {btc_amount_sats} satoshis to USDC on Base and send to {recipient_usdc_address}.

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: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:
    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
    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__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
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
x-provenance:
  method: harvested
  publisher: Hive Civilization
  source: https://receipts.thehiveryiq.com/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)