# getRawBlockHeader

Description: getRawBlockHeader cheatcode documentation

Note: This document was authored using MDX

  Source: https://github.com/NomicFoundation/hardhat-website/tree/main/src/content/docs/docs/reference/cheatcodes/Environment/get-raw-block-header.mdx

### Signature

```solidity
function getRawBlockHeader(
  uint256 blockNumber
) external view returns (bytes memory rlpHeader);
```

### Description

Gets the RLP encoded block header for a given block number.
Returns the block header in the same format as `cast block <block_number> --raw`.
