Skip to main content

Don't have an RPC Node yet?

Start using RPC Nodes in your project today.

Get your free RPC Node

eth_getUncleByBlockHashAndIndex

Get Uncle By Block Hash And Index

POSThttps://site1.moralis-nodes.com/:chain/:apiKey

Retrieves details of an uncle block by specifying the hash of the parent block and the uncle's index position. This method is useful for examining the uncles of a given block, providing insights into block reorganizations and network security.

Note

Please refer to RPC schema page for more details on the RPC params and RPC response definitions of the RPC method.

PATH PARAMS
chainstringrequired
The blockchain to interact with.
apiKeystringrequired
Your API key for authentication.
BODY PARAM
Request Bodyobjectrequired
The request payload for retrieving an uncle by block hash and index.
Responses
200Returns the specified uncle block details.
400Bad Request
404Not Found
429Too Many Requests
500Internal Server Error
curl --request POST \
--url 'https://site1.moralis-nodes.com/eth/YOUR_API_KEY' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getUncleByBlockHashAndIndex"
}
'
Response Example
{
"jsonrpc": "2.0",
"id": 1
}