block
Pack: blockstream-info · Endpoint: https://gateway.pipeworx.io/blockstream-info/mcp
Block by 64-char hex hash or by height.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
hash_or_height | string | yes | Block hash (hex) or numeric height as string. |
network | string | no |
Example call
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":{}}}'
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 |
merkle_root | string | Merkle root hash |
previousblockhash | string | Previous block hash |
nonce | number | Block nonce |
bits | number | Difficulty bits |
difficulty | number | Difficulty |
mediantime | number | Median 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",
"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, or use one-click install buttons:
{
"mcpServers": {
"blockstream-info": {
"url": "https://gateway.pipeworx.io/blockstream-info/mcp"
}
}
}
See Getting Started for client-specific install steps.