debug_getRawHeader
Returns the RLP-encoded header for a MegaETH block.
Summary
Returns a block header encoded with Recursive Length Prefix (RLP). The public MegaETH endpoint supports this standard debug method.
Parameters
0
block
QUANTITY or block tag
Yes
Block number or latest, safe, finalized, earliest, or pending.
Result
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.
Comparison with Ethereum Standard JSON-RPC
Ethereum Standard
The method returns the canonical RLP representation of the selected block header.
MegaETH Node Behavior
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.
MegaETH Public Gateway
The public gateway forwards this method through its compute pool and may cache immutable block selections.
Errors
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.
Examples
Endpoint: https://mainnet.megaeth.com/rpc
Capture date: July 24, 2026
Outcome: success
The RLP value is abbreviated below.
Sources
Probe: MegaETH Mainnet public endpoint, July 24, 2026
Last updated