> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# debug_getRawBlock | Tempo

> Tempo API method that returns the RLP-encoded block data for a given block number or tag. debug_getRawBlock on Tempo via Chainstack.

Tempo API method that returns the RLP-encoded block data for a given block number or tag.

## Parameters

* `blockParameter` — the block number (hex) or tag (`latest`, `earliest`, `pending`)

## Response

* `result` — the RLP-encoded block data as a hex string.

## `debug_getRawBlock` code examples

<CodeGroup>
  ```bash cURL theme={"system"}
  curl -X POST "CHAINSTACK_NODE_URL" \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc": "2.0", "method": "debug_getRawBlock", "params": ["latest"], "id": 1}'
  ```
</CodeGroup>


## OpenAPI

````yaml openapi/tempo_node_api/debug_and_trace/debug_getRawBlock.json POST /
openapi: 3.0.0
info:
  title: debug_getRawBlock Tempo example
  version: 1.0.0
  description: This is an API example for debug_getRawBlock for Tempo.
servers:
  - url: https://tempo-mainnet.core.chainstack.com/c3ce2925b51f1ed18719fe8a23bbdccf
security: []
paths:
  /:
    post:
      tags:
        - Debug and trace
      summary: debug_getRawBlock
      operationId: tempo-debug-getRawBlock
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: debug_getRawBlock
                params:
                  type: array
                  items: {}
                  default:
                    - latest
                  description: Method parameters
                id:
                  type: integer
                  default: 1
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    description: Method result

````