Path parameters
Your API key for authentication
Request
Hash of a block
The uncle’s index position
Example request params
Copy
Ask AI
[
"0x1d59ff54b1eb26b013ce3cb5fc9dab3705b415a67127a003c3e61eb445bb8df2",
"0x0"
]
Copy
Ask AI
curl https://site1.moralis-nodes.com/optimism/:apiKey \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockHashAndIndex", "params": ["0x1d59ff54b1eb26b013ce3cb5fc9dab3705b415a67127a003c3e61eb445bb8df2", "0x0"], "id": 1}'
Copy
Ask AI
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"difficulty": "0x027f07",
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000",
"gasLimit": "0x9f759",
"gasUsed": "0x9f759",
"hash": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331",
"logsBloom": "0x1a060020000015554c000200000003050000200017041014032020801000056020000001000a00d0020204040020012150010010000000280005000c00000000000020c0000000024008104011000080020020000001006100900000024208002000020002100000000000000080000000120080000002003c0000200000000200002010008300300001001031100100040010420000800000000014000004002000000c040200060000000080000000100000000040a2000001000061000042021080400200000410000404080800014008201000c20100500020011000000030001100100024008c80190400402008000020000c0041104218100000000000000002000800000",
"miner": "0x4e65fda2159562a496f9f3522f89122a3088497a",
"mixHash": "0x99e9d85137db46ef1e85fff042bb15a7b6f46618b7f600b0b4e7fb52fceafc3a",
"nonce": "0xfcf4db6d9bce1b8b",
"number": "0x1b4",
"parentHash": "0xa057c32b6ed8eb5e006cadfad55c7e635549c6e2135c4e6c3a9d5a6a80f72c3",
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0x220",
"stateRoot": "0x1a7e46b37b26e0c3f67ed4de3b5d3b1ff84a2e0a5e2dcf4d4b0d34b5a22b6e3",
"timestamp": "0x55ba467c",
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncles": []
}
}

