debug
debug_getRawHeader
Returns the RLP-encoded block header for the given block number.
Returns the RLP-encoded block header for the given block number.
Parameters
| # | Type | Description |
|---|---|---|
| 1 | string | Block number as hex string. |
Returns
| Type | Description |
|---|---|
string | Hex-encoded RLP representation of the block header. |
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "debug_getRawHeader",
"params": ["0x100"],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xf901f9a0..."
}
TRY IT
Notes
- Returns only the block header, not the full block. Much smaller than
debug_getRawBlock. - The header contains fields like parent hash, state root, transactions root, receipts root, block number, gas limit, gas used, timestamp, etc.
- Use an RLP decoder to parse the raw data.
