get_block
Pack: mempool-space · Endpoint: https://gateway.pipeworx.io/mempool-space/mcp
Block detail by hash or height.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
hash_or_height | string | yes | Block hash or numeric height |
network | string | no |
Example call
Arguments
{
"hash_or_height": "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f"
}
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":"get_block","arguments":{"hash_or_height":"000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_block', {
"hash_or_height": "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f"
});
More examples
{
"hash_or_height": "840000",
"network": "mainnet"
}
Response shape
| Field | Type | Description |
|---|---|---|
id | string | Block hash |
height | number | Block height |
version | number | Block version |
timestamp | number | Block timestamp (Unix) |
tx_count | number | Transaction count |
size | number | Block size in bytes |
weight | number | Block weight in WU |
merkle_root | string | Merkle root hash |
previousblockhash | string | Previous block hash |
difficulty | number | Mining difficulty |
nonce | number | Block nonce |
bits | number | Difficulty bits |
extras | object | Extra block data |
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 in WU"
},
"merkle_root": {
"type": "string",
"description": "Merkle root hash"
},
"previousblockhash": {
"type": "string",
"description": "Previous block hash"
},
"difficulty": {
"type": "number",
"description": "Mining difficulty"
},
"nonce": {
"type": "number",
"description": "Block nonce"
},
"bits": {
"type": "number",
"description": "Difficulty bits"
},
"extras": {
"type": "object",
"description": "Extra block data"
}
}
}
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.