debug
debug_getRawBlock
Returns the RLP-encoded block data for the given block number. Useful for low-level analysis or re-importing blocks.
Returns the RLP-encoded block data for the given block number. Useful for low-level analysis or re-importing blocks.
Parameters
| # | Type | Description |
|---|---|---|
| 1 | string | Block number as hex string. |
Returns
| Type | Description |
|---|---|
string | Hex-encoded RLP representation of the entire block (header, transactions, uncles). |
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "debug_getRawBlock",
"params": ["0x100"],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xf90260f901f9a0..."
}
TRY IT
Notes
- The result is an RLP-encoded block containing the header, list of transactions, and list of uncle headers.
- Use an RLP decoder to parse the raw data.
- The response size depends on the number of transactions in the block.
