hashrate

Pack: mempool-space · Endpoint: https://gateway.pipeworx.io/mempool-space/mcp

Network hashrate + difficulty history.

Parameters

NameTypeRequiredDescription
periodstringno1d | 3d | 1w | 1m | 3m | 6m | 1y | 2y | 3y | all (default 3m)
networkstringno

Example call

Arguments

{
  "period": "1w"
}

curl

curl -X POST https://gateway.pipeworx.io/mempool-space/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"hashrate","arguments":{"period":"1w"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('hashrate', {
  "period": "1w"
});

More examples

{
  "period": "1y",
  "network": "mainnet"
}

Response shape

FieldTypeDescription
hashratesarrayHistorical hashrate data
Full JSON Schema
{
  "type": "object",
  "properties": {
    "hashrates": {
      "type": "array",
      "description": "Historical hashrate data",
      "items": {
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "number",
            "description": "Unix timestamp"
          },
          "difficulty": {
            "type": "number",
            "description": "Mining difficulty"
          },
          "hashrate": {
            "type": "number",
            "description": "Network hashrate in H/s"
          }
        }
      }
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "mempool-space": {
      "url": "https://gateway.pipeworx.io/mempool-space/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026