eth_getUncleByBlockNumberAndIndex
Retrieves information about an uncle block by the block's number and the uncle's index position
Request
Examples
curl --request POST \
--url https://rpc.xone.org \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"params": [
"latest",
"0x0"
],
"method": "eth_getUncleByBlockNumberAndIndex"
}
'
Response
200 OK
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"author": "0x8e5c6e6350d5799f45b564c3419d5d06d1a7de32",
"difficulty": "0x2b1ae4d6e2df3",
"extraData": "0x6d696e656420776974682067657468706f6f6c2e636f6d",
"gasLimit": "0x7a1200",
"gasUsed": "0x0",
"hash": "0x829df9bb801fc0494abf2f443423a49ffa32964554db71b098d332d87b70a48b",
"logsBloom": "0x0",
"miner": "0x8e5c6e6350d5799f45b564c3419d5d06d1a7de32",
"mixHash": "0x59daa4a1e74f051b4e009e1913af947a494dbb08c1761da00758cd287e6cd926",
"nonce": "0x0000000000000000",
"number": "0x1b4",
"parentHash": "0x5e2d4c5a2c0c579db3ed23d6581e33e58603ecdb7e01ef94b1b1d1f392dd5ea9",
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad0df6ddf4c2e648a1e4dbe849f3a0929",
"size": "0x220",
"stateRoot": "0xd7f8974fb5ac78d7a94f0b5121e357eebcc3a7b45b1e59f616b7f1e70b64c76d",
"timestamp": "0x55ba467c",
"totalDifficulty": "0x3b6b3e06244483",
"transactions": [],
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncles": []
}
}
Request params
Name | Type | Description |
---|---|---|
id | integer | Request identifier |
jsonrpc | string | JSON-RPC version |
method | string | API method name |
Parameters | array of strings | |
blockNumber | string | (optional) Block number as an integer, or string |
index | string |
Response
200
The uncle block object if foundName | Type | Description |
---|---|---|
Parameters | object | |
id | integer | |
jsonrpc | string | |
result | object |