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

# debug_getRawBlock

> Call debug_getRawBlock on Goldsky Edge RPC to fetch an RLP-encoded EVM block by number or tag, with curl, JavaScript, and Python request examples.

## Parameters

**blockNumber** `string` *required*

Block number (hex), or `latest`

## Returns

**rawBlock** `string`

RLP-encoded block (hex)

## Example

```bash cURL theme={"dark"}
curl -X POST "https://edge.goldsky.com/standard/evm/1?key=demo" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "method": "debug_getRawBlock", "params": ["latest"], "id": 1}'
```

```javascript JavaScript theme={"dark"}
const response = await fetch('https://edge.goldsky.com/standard/evm/1?key=demo', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
  "jsonrpc": "2.0",
  "method": "debug_getRawBlock",
  "params": [
    "latest"
  ],
  "id": 1
})
});
const { result } = await response.json();
console.log(result);
```

```python Python theme={"dark"}
import requests

response = requests.post(
    'https://edge.goldsky.com/standard/evm/1?key=demo',
    json={
  "jsonrpc": "2.0",
  "method": "debug_getRawBlock",
  "params": [
    "latest"
  ],
  "id": 1
}
)
print(response.json()['result'])
```


## Related topics

- [debug_getRawReceipts](https://docs.goldsky.com/edge-rpc/evm/methods/debug_getRawReceipts.md)
- [debug_getRawHeader](https://docs.goldsky.com/edge-rpc/evm/methods/debug_getRawHeader.md)
- [debug_getRawTransaction](https://docs.goldsky.com/edge-rpc/evm/methods/debug_getRawTransaction.md)
- [Blocks](https://docs.goldsky.com/feeds/api/chain-datasets/blocks.md)
- [eth_getStorageAt](https://docs.goldsky.com/edge-rpc/evm/methods/eth_getStorageAt.md)
