ForceX

Chain

Litecoin block

get_chain_block · Chain · 1 credit

Use this when the user asks about a specific Litecoin block by height or hash. A Litecoin block by height or hash. 1 credit base. Includes: stats (+1), transactions (+2, returns up to 500 transactions — use `tx_count` for the block total; returned-vs-total metadata is included), mweb (+2), classification (+5; auto-adds transactions +2 — total 8, above the Free per-request cap of 6, so paid tier only; attaches to the RETURNED transactions only). Heavy: transactions.inputs (+5) / transactions.outputs (+4) — with the required transactions parent these exceed the Free cost cap (paid tier only); avoid them by default. If you cannot tell whether an identifier is a block, transaction, or address, use search_chain.

Page Sections

Request

Send a tools/call request to the MCP endpoint /xtract/mcp:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_chain_block",
    "arguments": {
      "chain": "litecoin",
      "height_or_hash": "3134589"
    }
  }
}

Parameters

NameTypeRequiredDescription
chainstring — one of: litecoinyesBlockchain network. Currently litecoin.
height_or_hashstringyesBlock height (digits) or 64-character hex block hash.
includearray of string — one of: classification, mweb, stats, transactions, transactions.inputs, transactions.outputsnoOptional expansions. Each expansion adds credits.
Full input schema
{
  "additionalProperties": false,
  "properties": {
    "chain": {
      "description": "Blockchain network. Currently `litecoin`.",
      "enum": [
        "litecoin"
      ],
      "type": "string"
    },
    "height_or_hash": {
      "description": "Block height (digits) or 64-character hex block hash.",
      "pattern": "^([0-9]+|[0-9a-fA-F]{64})$",
      "type": "string"
    },
    "include": {
      "description": "Optional expansions. Each expansion adds credits.",
      "items": {
        "enum": [
          "classification",
          "mweb",
          "stats",
          "transactions",
          "transactions.inputs",
          "transactions.outputs"
        ],
        "type": "string"
      },
      "maxItems": 32,
      "type": "array",
      "x-include-costs": {
        "classification": 5,
        "mweb": 2,
        "stats": 1,
        "transactions": 2,
        "transactions.inputs": 5,
        "transactions.outputs": 4
      }
    }
  },
  "required": [
    "chain",
    "height_or_hash"
  ],
  "type": "object"
}

Response

The outputSchema is the CLOSED model contract for structuredContent (top-level additionalProperties: false), answer-first fixed key order: source, tool, endpoint, request (echoed arguments), answer (authoritative result summary — answer from this and data), data (the complete result), included/included_digest (full expansion rows + a compact digest, when paid include expansions were served), units, answerable_fields, warnings, citations (complete visible citation array), usage (per-call cost truth), validation, and pagination (cursor/has_more/effective_limit/requested_limit). The single content block is a short plain-text answer card mirroring the same facts (header, Answer, Units, Warnings, Usage, Source). Errors return a plain-text error card and attach NO structuredContent. See How to cite ForceX MCP results.

Full output schema
{
  "additionalProperties": false,
  "description": "Answer-first model contract: source, tool, endpoint, request, answer, data, included?, included_digest?, units, answerable_fields, warnings, citations, usage, validation, pagination?. Errors attach NO structuredContent (plain-text error card in content).",
  "properties": {
    "answer": {
      "description": "Authoritative result summary — answer from this and `data`.",
      "type": "string"
    },
    "answerable_fields": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "citations": {
      "items": {
        "additionalProperties": true,
        "description": "Visible citation (optional keys null-elided).",
        "properties": {
          "docs_url": {
            "type": "string"
          },
          "endpoint": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "tool": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "source",
          "tool",
          "endpoint",
          "docs_url"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "data": {
      "additionalProperties": true,
      "properties": {
        "bits": {
          "type": "string"
        },
        "block_time": {
          "type": "string"
        },
        "difficulty": {
          "type": "number"
        },
        "has_mweb": {
          "type": "boolean"
        },
        "hash": {
          "type": "string"
        },
        "height": {
          "type": "integer"
        },
        "merkleroot": {
          "type": "string"
        },
        "nonce": {
          "type": "integer"
        },
        "prev_hash": {
          "type": "string"
        },
        "size_bytes": {
          "type": "integer"
        },
        "tx_count": {
          "type": "integer"
        },
        "version": {
          "type": "integer"
        },
        "weight": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "endpoint": {
      "type": "string"
    },
    "included": {
      "additionalProperties": true,
      "properties": {
        "stats": {
          "additionalProperties": true,
          "properties": {
            "avg_fee_rate_sat_vb": {
              "type": [
                "number",
                "null"
              ]
            },
            "mweb_size": {},
            "segwit_size": {
              "type": "integer"
            },
            "subsidy_atomic_units": {
              "type": "integer"
            },
            "total_fee_value_atomic_units": {
              "type": "integer"
            }
          },
          "type": "object"
        }
      },
      "type": [
        "object",
        "null"
      ]
    },
    "included_digest": {
      "description": "Compact per-expansion digest (counts/truncation/sums); full rows stay in `included`.",
      "type": "object"
    },
    "pagination": {
      "type": [
        "object",
        "null"
      ]
    },
    "request": {
      "type": "object"
    },
    "source": {
      "type": "string"
    },
    "tool": {
      "type": "string"
    },
    "units": {
      "type": "object"
    },
    "usage": {
      "additionalProperties": true,
      "description": "Per-call cost truth; cost_note only when the charge exceeds the Free cap.",
      "properties": {
        "base_credit_cost": {
          "type": "integer"
        },
        "credit_cost": {
          "type": [
            "integer",
            "null"
          ]
        },
        "include_credit_costs": {
          "type": "object"
        },
        "rate_limit": {
          "type": [
            "object",
            "null"
          ]
        }
      },
      "required": [
        "credit_cost",
        "base_credit_cost",
        "include_credit_costs"
      ],
      "type": "object"
    },
    "validation": {
      "additionalProperties": false,
      "description": "Validation state; not_applicable_reason when not chain-scope.",
      "properties": {
        "lag_blocks": {
          "type": [
            "integer",
            "null"
          ]
        },
        "not_applicable_reason": {
          "type": "string"
        },
        "scope": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": [
            "string",
            "null"
          ]
        },
        "validated_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "validated_height": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "status"
      ],
      "type": "object"
    },
    "warnings": {
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "source",
    "tool",
    "endpoint",
    "request",
    "answer",
    "data",
    "units",
    "answerable_fields",
    "warnings",
    "citations",
    "usage",
    "validation"
  ],
  "title": "Litecoin block result",
  "type": "object"
}

Notes

  • Cost: 1 credit. Costs and tier limits match the wrapped Xtract REST endpoint — see get_developer_limits.
  • Wrapped REST endpoint: /xtract/docs/reference/chain-block/ — the full parameter, response, and methodology reference.
  • Data-retrieval tool: it never creates blockchain transactions, signs messages, publishes content, or changes third-party state (openWorldHint=false, destructiveHint=false). Successful calls consume Xtract credits and record usage on your ForceX account, so readOnlyHint=false.