debug_getRawBlock

Returns an RLP-encoded block.

This method will use 80 Compute Units.


Parameters

blockNumber - Quantity (hex) | Tag - Required - The block number as a string in hexadecimal format or latest

Returns

result - The RLP encoded block

// Result
{
	"jsonrpc": "2.0",
	"result": "0xf94a4cf90266a06e9cc664b757b6bbb6d74b31a0060......",
	"id": 1
}
curl https://testnet.monad.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0", "method":"debug_getRawBlock","params":["latest"],"id":1}'
    

Last updated

Was this helpful?