block

Pack: blockstream-info · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/block for the schema, then POST the same URL with its arguments for the data.

Block by 64-char hex hash or by height.

Parameters

NameTypeRequiredDescription
hash_or_heightstringyesBlock hash (hex) or numeric height as string.
networkstringno

Example call

Arguments

{
  "hash_or_height": "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f"
}

curl

curl -X POST https://gateway.pipeworx.io/blockstream-info/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"block","arguments":{"hash_or_height":"000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('block', {
  "hash_or_height": "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f"
});

More examples

{
  "hash_or_height": "840000",
  "network": "mainnet"
}

Response shape

FieldTypeDescription
idstringBlock hash
heightnumberBlock height
versionnumberBlock version
timestampnumberBlock timestamp (unix)
tx_countnumberTransaction count
sizenumberBlock size in bytes
weightnumberBlock weight
merkle_rootstringMerkle root hash
previousblockhashstring | nullPrevious block hash
noncenumberBlock nonce
bitsnumberDifficulty bits
difficultynumberDifficulty
mediantimenumberMedian block time
Full JSON Schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Block hash"
    },
    "height": {
      "type": "number",
      "description": "Block height"
    },
    "version": {
      "type": "number",
      "description": "Block version"
    },
    "timestamp": {
      "type": "number",
      "description": "Block timestamp (unix)"
    },
    "tx_count": {
      "type": "number",
      "description": "Transaction count"
    },
    "size": {
      "type": "number",
      "description": "Block size in bytes"
    },
    "weight": {
      "type": "number",
      "description": "Block weight"
    },
    "merkle_root": {
      "type": "string",
      "description": "Merkle root hash"
    },
    "previousblockhash": {
      "type": [
        "string",
        "null"
      ],
      "description": "Previous block hash"
    },
    "nonce": {
      "type": "number",
      "description": "Block nonce"
    },
    "bits": {
      "type": "number",
      "description": "Difficulty bits"
    },
    "difficulty": {
      "type": "number",
      "description": "Difficulty"
    },
    "mediantime": {
      "type": "number",
      "description": "Median block time"
    }
  }
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the blockstream-info pack
{
  "mcpServers": {
    "blockstream-info": {
      "url": "https://gateway.pipeworx.io/blockstream-info/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 5, 2026