monerometrics-net Chain API

Blocks by height or hash, and how each was attributed to a pool.

GitHub OpenAPI

Operations 5

GET /chain/window Blocks between two heights #
GET /chain/block/{block_hash} Block detail #
POST /chain/search Find a transaction or a block by hash #
GET /chain/provenance Attribution provenance #
GET /chain/fork-window Recent blocks with orphans #

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/monerometrics-net:monerometrics-net-chain-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

monerometrics-net-chain-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: monerometrics Chain API
  description: 'Free, read-only JSON API over a reorg-aware Monero index: chain reorganizations, orphan blocks, mining-pool shares with the evidence behind each attribution, network series and the Haveno market. No key, no account.


    ## Quick start


    ```bash

    curl -s https://api.monerometrics.net/status

    curl -s "https://api.monerometrics.net/pools/distribution?window=24h"

    ```


    Every endpoint below comes with a command that runs as is.


    ## Rate limit


    300 requests per minute per IP address, over a sliding window. Every response says where you stand:


    | Header | Meaning |

    |---|---|

    | `RateLimit-Limit` | requests allowed per minute |

    | `RateLimit-Remaining` | requests left in the current window |

    | `RateLimit-Reset` | seconds until a slot frees up |


    Past the limit the API answers `429` with a `Retry-After` header, in seconds.


    ## Caching


    Aggregates are recomputed once per period, so polling faster returns the same bytes. Responses carry `Cache-Control` and an `ETag`: send it back in `If-None-Match` and an unchanged answer costs an empty `304`.


    ## Errors


    Errors are JSON with a `detail` field. `400` for a range the endpoint refuses, `404` for a block or hash that is not known, `422` for a malformed parameter, `429` past the rate limit.


    ## Reading the data


    - A block''s pool is labelled by evidence: `viewkey_proof`, `pool_api`, `coinbase_heuristic` or none. A claimed attribution is not a proven one.

    - Full indexing coverage starts at height 3490000. Below it only the canonical chain is known and pool attribution is mostly absent.

    - Reorganizations and orphans only cover what this node observed live.


    ## Other interfaces


    - Changelog

    - OpenAPI schema, ReDoc

    - Model Context Protocol server: `https://api.monerometrics.net/mcp`

    - llms.txt

    - Source: github.com/nowi333/monerometrics'
  contact:
    name: monerometrics
    url: https://monerometrics.net/
    email: contact@monerometrics.net
  license:
    name: MIT
    url: https://github.com/nowi333/monerometrics/blob/main/LICENSE
  version: 0.31.8
servers:
- url: https://api.monerometrics.net
tags:
- name: Chain
  description: Blocks by height or hash, and how each was attributed to a pool.
paths:
  /chain/window:
    get:
      summary: Blocks between two heights
      operationId: chain_window_chain_window_get
      parameters:
      - name: from
        in: query
        required: true
        schema:
          type: integer
          minimum: 0
          title: From
      - name: to
        in: query
        required: true
        schema:
          type: integer
          minimum: 0
          title: To
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChainWindowResponse'
          headers:
            RateLimit-Limit:
              description: Requests allowed per minute for this client.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window frees a slot.
              schema:
                type: integer
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Chain
      description: 'Raw blocks between two heights, both included. At most 1000 blocks per request.


        ```bash

        curl -s "https://api.monerometrics.net/chain/window?from=3490000&to=3490010"

        ```'
      x-codeSamples:
      - lang: Shell
        label: curl
        source: curl -s "https://api.monerometrics.net/chain/window?from=3490000&to=3490010"
  /chain/block/{block_hash}:
    get:
      summary: Block detail
      description: 'Full detail for one block: coinbase, weights, transactions, merge mining.


        Read live from the node so nothing extra has to be stored, and enriched with

        the pool attribution and, when the block was proven, the public inputs that

        let anyone re-verify the proof themselves.


        ```bash

        curl -s "https://api.monerometrics.net/chain/block/c5a428adf9022ebeba27415969f5259a98774e40e38bdc5f0fcdd7088f8b4fb2"

        ```'
      operationId: block_detail_chain_block__block_hash__get
      parameters:
      - name: block_hash
        in: path
        required: true
        schema:
          type: string
          title: Block Hash
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BlockDetailResponse'
          headers:
            RateLimit-Limit:
              description: Requests allowed per minute for this client.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window frees a slot.
              schema:
                type: integer
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Chain
      x-codeSamples:
      - lang: Shell
        label: curl
        source: curl -s "https://api.monerometrics.net/chain/block/c5a428adf9022ebeba27415969f5259a98774e40e38bdc5f0fcdd7088f8b4fb2"
  /chain/search:
    post:
      summary: Find a transaction or a block by hash
      description: 'Resolve a 64-character hash to a transaction or a block.


        POST rather than GET so the hash never lands in a URL, an access log or the

        per-path usage counters: looking up your own transaction should not tie it

        to you. A transaction is read live from the node and placed on the chain

        monerometrics has indexed, with the pool that mined its block and whether

        that height was ever contested. No amount, sender or recipient: the protocol

        encrypts them.


        ```bash

        curl -s -X POST https://api.monerometrics.net/chain/search \

        -H ''Content-Type: application/json'' \

        -d ''{"query": "c5a428adf9022ebeba27415969f5259a98774e40e38bdc5f0fcdd7088f8b4fb2"}''

        ```'
      operationId: chain_search_chain_search_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResponse'
          headers:
            RateLimit-Limit:
              description: Requests allowed per minute for this client.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window frees a slot.
              schema:
                type: integer
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Chain
      x-codeSamples:
      - lang: Shell
        label: curl
        source: "curl -s -X POST https://api.monerometrics.net/chain/search \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"query\": \"c5a428adf9022ebeba27415969f5259a98774e40e38bdc5f0fcdd7088f8b4fb2\"}'"
  /chain/provenance:
    get:
      summary: Attribution provenance
      description: 'How our attribution was established over a window.


        Most trackers publish pool shares without saying where the number comes

        from. This reports the evidence behind ours: cryptographically proven,

        claimed by a pool API, structurally inferred, or unattributed -- including

        claims a pool could not prove with its own published key.


        ```bash

        curl -s "https://api.monerometrics.net/chain/provenance?window=24h"

        ```'
      operationId: chain_provenance_chain_provenance_get
      parameters:
      - name: window
        in: query
        required: false
        schema:
          type: string
          pattern: ^(1h|6h|24h|48h|7d)$
          default: 24h
          title: Window
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProvenanceResponse'
          headers:
            RateLimit-Limit:
              description: Requests allowed per minute for this client.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window frees a slot.
              schema:
                type: integer
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Chain
      x-codeSamples:
      - lang: Shell
        label: curl
        source: curl -s "https://api.monerometrics.net/chain/provenance?window=24h"
  /chain/fork-window:
    get:
      summary: Recent blocks with orphans
      operationId: chain_fork_window_chain_fork_window_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 1000
          minimum: 10
          default: 250
          title: Limit
      - name: to
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
            minimum: 0
          - type: 'null'
          title: To
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForkWindowResponse'
          headers:
            RateLimit-Limit:
              description: Requests allowed per minute for this client.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window frees a slot.
              schema:
                type: integer
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Chain
      description: 'The latest blocks, orphans included, each flagged when it is a fork point. `to` moves the top of the window down the chain.


        ```bash

        curl -s "https://api.monerometrics.net/chain/fork-window?limit=50"

        ```'
      x-codeSamples:
      - lang: Shell
        label: curl
        source: curl -s "https://api.monerometrics.net/chain/fork-window?limit=50"
components:
  schemas:
    ProvenanceBucket:
      properties:
        source:
          type: string
          title: Source
        block_count:
          type: integer
          title: Block Count
        percentage:
          type: number
          title: Percentage
      type: object
      required:
      - source
      - block_count
      - percentage
      title: ProvenanceBucket
      description: How many blocks were attributed by a given method.
    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
    ChainWindowResponse:
      properties:
        from:
          type: integer
          title: From
        to:
          type: integer
          title: To
        count:
          type: integer
          title: Count
        blocks:
          items:
            $ref: '#/components/schemas/Block'
          type: array
          title: Blocks
      type: object
      required:
      - from
      - to
      - count
      - blocks
      title: ChainWindowResponse
    SearchResponse:
      properties:
        kind:
          type: string
          title: Kind
        tx:
          anyOf:
          - $ref: '#/components/schemas/TxDetailResponse'
          - type: 'null'
        height:
          anyOf:
          - type: integer
          - type: 'null'
          title: Height
        hash:
          anyOf:
          - type: string
          - type: 'null'
          title: Hash
      type: object
      required:
      - kind
      title: SearchResponse
      description: A hash resolved to a transaction or to a block.
    TxReorgExposure:
      properties:
        contested:
          type: boolean
          title: Contested
          default: false
        reorgs_touching:
          type: integer
          title: Reorgs Touching
          default: 0
        max_reorg_depth:
          anyOf:
          - type: integer
          - type: 'null'
          title: Max Reorg Depth
      type: object
      title: TxReorgExposure
      description: What monerometrics knows about the height a transaction was included at.
    Block:
      properties:
        height:
          type: integer
          title: Height
        hash:
          type: string
          title: Hash
        prev_hash:
          type: string
          title: Prev Hash
        timestamp_unix:
          type: integer
          title: Timestamp Unix
        timestamp_human:
          type: string
          format: date-time
          title: Timestamp Human
        difficulty:
          type: string
          title: Difficulty
        tx_count:
          type: integer
          title: Tx Count
        size_bytes:
          type: integer
          title: Size Bytes
        miner_pool:
          anyOf:
          - type: string
          - type: 'null'
          title: Miner Pool
        pool_source:
          anyOf:
          - type: string
          - type: 'null'
          title: Pool Source
        merge_mining:
          anyOf:
          - type: integer
          - type: 'null'
          title: Merge Mining
        reward_xmr:
          anyOf:
          - type: string
          - type: 'null'
          title: Reward Xmr
        is_canonical:
          type: boolean
          title: Is Canonical
          default: true
      type: object
      required:
      - height
      - hash
      - prev_hash
      - timestamp_unix
      - timestamp_human
      - difficulty
      - tx_count
      - size_bytes
      title: Block
    ProvenanceResponse:
      properties:
        window:
          type: string
          title: Window
        total_blocks:
          type: integer
          title: Total Blocks
        attributed:
          type: integer
          title: Attributed
        proven:
          type: integer
          title: Proven
        proven_share:
          type: number
          title: Proven Share
        unproven_claims:
          type: integer
          title: Unproven Claims
        merge_mined:
          type: integer
          title: Merge Mined
        merge_mined_share:
          type: number
          title: Merge Mined Share
        breakdown:
          items:
            $ref: '#/components/schemas/ProvenanceBucket'
          type: array
          title: Breakdown
      type: object
      required:
      - window
      - total_blocks
      - attributed
      - proven
      - proven_share
      - unproven_claims
      - merge_mined
      - merge_mined_share
      - breakdown
      title: ProvenanceResponse
      description: Evidence quality of our own attribution over a window.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ForkWindowResponse:
      properties:
        tip_height:
          type: integer
          title: Tip Height
        blocks_count:
          type: integer
          title: Blocks Count
        reorgs_count:
          type: integer
          title: Reorgs Count
        blocks:
          items:
            $ref: '#/components/schemas/ForkBlock'
          type: array
          title: Blocks
      type: object
      required:
      - tip_height
      - blocks_count
      - reorgs_count
      - blocks
      title: ForkWindowResponse
    SearchRequest:
      properties:
        query:
          type: string
          maxLength: 128
          title: Query
      type: object
      required:
      - query
      title: SearchRequest
      description: A 64-character hash, sent in the body so it never appears in a URL.
    TxDetailResponse:
      properties:
        tx_hash:
          type: string
          title: Tx Hash
        in_pool:
          type: boolean
          title: In Pool
        block_height:
          anyOf:
          - type: integer
          - type: 'null'
          title: Block Height
        block_hash:
          anyOf:
          - type: string
          - type: 'null'
          title: Block Hash
        block_timestamp:
          anyOf:
          - type: integer
          - type: 'null'
          title: Block Timestamp
        confirmations:
          anyOf:
          - type: integer
          - type: 'null'
          title: Confirmations
        spendable:
          type: boolean
          title: Spendable
          default: false
        lock_blocks:
          type: integer
          title: Lock Blocks
          default: 10
        double_spend_seen:
          type: boolean
          title: Double Spend Seen
          default: false
        version:
          anyOf:
          - type: integer
          - type: 'null'
          title: Version
        unlock_time:
          anyOf:
          - type: integer
          - type: 'null'
          title: Unlock Time
        coinbase:
          type: boolean
          title: Coinbase
          default: false
        input_count:
          type: integer
          title: Input Count
          default: 0
        output_count:
          type: integer
          title: Output Count
          default: 0
        ring_size:
          anyOf:
          - type: integer
          - type: 'null'
          title: Ring Size
        rct_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Rct Type
        fee_xmr:
          anyOf:
          - type: string
          - type: 'null'
          title: Fee Xmr
        fee_per_byte:
          anyOf:
          - type: integer
          - type: 'null'
          title: Fee Per Byte
        size_bytes:
          anyOf:
          - type: integer
          - type: 'null'
          title: Size Bytes
        miner_pool:
          anyOf:
          - type: string
          - type: 'null'
          title: Miner Pool
        pool_source:
          anyOf:
          - type: string
          - type: 'null'
          title: Pool Source
        reorg:
          $ref: '#/components/schemas/TxReorgExposure'
          default:
            contested: false
            reorgs_touching: 0
      type: object
      required:
      - tx_hash
      - in_pool
      title: TxDetailResponse
      description: 'What a transaction makes public. No amount, sender or recipient: the

        protocol encrypts them.'
    ForkBlock:
      properties:
        height:
          type: integer
          title: Height
        hash:
          type: string
          title: Hash
        prev_hash:
          type: string
          title: Prev Hash
        is_canonical:
          type: boolean
          title: Is Canonical
        miner_pool:
          anyOf:
          - type: string
          - type: 'null'
          title: Miner Pool
        pool_source:
          anyOf:
          - type: string
          - type: 'null'
          title: Pool Source
        merge_mining:
          anyOf:
          - type: integer
          - type: 'null'
          title: Merge Mining
        timestamp_unix:
          type: integer
          title: Timestamp Unix
        tx_count:
          type: integer
          title: Tx Count
        is_fork_point:
          type: boolean
          title: Is Fork Point
          default: false
      type: object
      required:
      - height
      - hash
      - prev_hash
      - is_canonical
      - timestamp_unix
      - tx_count
      title: ForkBlock
    BlockDetailResponse:
      properties:
        height:
          type: integer
          title: Height
        hash:
          type: string
          title: Hash
        prev_hash:
          anyOf:
          - type: string
          - type: 'null'
          title: Prev Hash
        timestamp_unix:
          anyOf:
          - type: integer
          - type: 'null'
          title: Timestamp Unix
        difficulty:
          anyOf:
          - type: string
          - type: 'null'
          title: Difficulty
        reward_xmr:
          anyOf:
          - type: string
          - type: 'null'
          title: Reward Xmr
        size_bytes:
          anyOf:
          - type: integer
          - type: 'null'
          title: Size Bytes
        weight:
          anyOf:
          - type: integer
          - type: 'null'
          title: Weight
        long_term_weight:
          anyOf:
          - type: integer
          - type: 'null'
          title: Long Term Weight
        coinbase_hash:
          anyOf:
          - type: string
          - type: 'null'
          title: Coinbase Hash
        coinbase_outputs:
          anyOf:
          - type: integer
          - type: 'null'
          title: Coinbase Outputs
        tx_count:
          type: integer
          title: Tx Count
          default: 0
        tx_hashes:
          items:
            type: string
          type: array
          title: Tx Hashes
          default: []
        merge_mining:
          items:
            $ref: '#/components/schemas/MergeMinedChain'
          type: array
          title: Merge Mining
          default: []
        miner_pool:
          anyOf:
          - type: string
          - type: 'null'
          title: Miner Pool
        pool_source:
          anyOf:
          - type: string
          - type: 'null'
          title: Pool Source
        proof_address:
          anyOf:
          - type: string
          - type: 'null'
          title: Proof Address
        proof_viewkey:
          anyOf:
          - type: string
          - type: 'null'
          title: Proof Viewkey
      type: object
      required:
      - height
      - hash
      title: BlockDetailResponse
      description: Full on-chain detail for one block, read live from the node.
    MergeMinedChain:
      properties:
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        height:
          anyOf:
          - type: integer
          - type: 'null'
          title: Height
        id:
          anyOf:
          - type: string
          - type: 'null'
          title: Id
      type: object
      title: MergeMinedChain
      description: An auxiliary chain merge-mined into this Monero block.
  responses:
    RateLimited:
      description: Rate limit exceeded. Wait `Retry-After` seconds.
      headers:
        RateLimit-Limit:
          description: Requests allowed per minute for this client.
          schema:
            type: integer
        RateLimit-Remaining:
          description: Requests left in the current window.
          schema:
            type: integer
        RateLimit-Reset:
          description: Seconds until the window frees a slot.
          schema:
            type: integer
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
      content:
        application/json:
          example:
            detail: Too many requests