debug_getRawHeader
Returns the RLP-encoded header for a MegaETH block.
Last updated
Returns the RLP-encoded header for a MegaETH block.
Returns a block header encoded with Recursive Length Prefix (RLP). The public MegaETH endpoint supports this standard debug method.
0
block
QUANTITY or block tag
Yes
Block number or latest, safe, finalized, earliest, or pending.
The result is a DATA value containing the RLP-encoded header. Decode the bytes as an Ethereum block header rather than treating them as a JSON block object.
The method returns the canonical RLP representation of the selected block header.
MegaETH exposes the method through its debug namespace and accepts a block number or tag. The encoded header includes the fields used by the selected MegaETH hardfork.
The public gateway forwards this method through its compute pool and may cache immutable block selections.
The | Scope | column distinguishes method failures from gateway policy errors.
-32602
Method
Invalid params
The block selector is missing or malformed.
-32000
Method
Server error
The block is unavailable or cannot be encoded.
-32099
Transport/policy
Payload too large
The request exceeds the public endpoint body limit.
Endpoint: https://mainnet.megaeth.com/rpc
Capture date: July 24, 2026
Outcome: success
The RLP value is abbreviated below.
Probe: MegaETH Mainnet public endpoint, July 24, 2026
Last updated
{
"jsonrpc": "2.0",
"id": 1,
"method": "debug_getRawHeader",
"params": ["0x1"]
}{
"jsonrpc": "2.0",
"id": 1,
"result": "0xf9026ba09425ed45fa0843e257166258f69bced9ef9eb2d0bb23c6b5a901fba3…"
}