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

# debug_getRawBlock

> Retrieves and returns the RLP encoded block by number.

### Parameters

**chainId** `string` *required* (default: 10200)

Unique identifier for a blockchain network.

**id** `number` *required* (default: 1)

Request identifier used to match responses.

**jsonrpc** `string` *required* (default: 2.0)

JSON-RPC version.

**method** `string` *required* (default: debug\_getRawBlock)

JSON-RPC method name.

**params** `object` *required*

The parameters for method debug\_getRawBlock: \[blockNrOrHash].

Positional parameters for `debug_getRawBlock`:

<ul>
  <li>`params[]`: The block number or hash.</li>
</ul>

### Returns

**result** `string`

The RLP encoded data.

```bash Curl theme={null}
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=10200 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "debug_getRawBlock",
    "params": [
      "0x1"
    ]
  }'
```

```json Success theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": ""
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.