Returns information about a uncle of a block by hash and uncle index position.
Request
curl 'https://rpc.web3api.io?x-api-key=YOUR-API-KEY' \
-X POST \
-H 'x-amberdata-blockchain-id: ethereum-mainnet' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_getUncleByBlockHashAndIndex","params":["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35","0x0"]}'
Index | Description |
---|---|
0* - blockHash | The block hash. |
1* - index | The uncle's index position. |
*Required
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"difficulty": "0xbf93da424b943",
"extraData": "0x65746865726d696e652d657539",
"gasLimit": "0x7a121d",
"gasUsed": "0x79ea62",
"hash": "0x824cce7c7c2ec6874b9fa9a9a898eb5f27cbaf3991dfa81084c3af60d1db618c",
"logsBloom": "0x09484320...0",
"miner": "0xea674fdde714fd979de3edf0f56aa9716b898ec8",
"mixHash": "0x0b15fe0a9aa789c167b0f5ade7b72969d9f2193014cb4e98382254f60ffb2f4a",
"nonce": "0xa212d6400b89b3f6",
"number": "0x5bad54",
"parentHash": "0x05e19fb68d9ec798073808e8b3170875cb327d4b6cde7d6f60fe194677bb26fd",
"receiptsRoot": "0x90807b32c4aa4610c57289de57fa68ba50ed53f14dd2c25f1862aa049029dcd6",
"sha3Uncles": "0xf763576c1ea6a8c61a206e16b1a2451bec5cba1c7545d7ff733a1e8c78715569",
"size": "0x216",
"stateRoot": "0xebc7a1603bfffe0a14bdb89f898e2f2824abb40f04579beb7b920c56d6e273c9",
"timestamp": "0x5b54143f",
"totalDifficulty": null,
"transactionsRoot": "0x7562cba41e067b364b933e7b566fb2444f6954fef3964a5a487d4cd79d97a56c",
"uncles": []
}
}
Type | Description |
---|---|
number | The block number. null when its pending block. |
hash | The hash of the block. null when its a pending block. |
parentHash | The hash of the parent block. |
nonce | The hash of the generated proof-of-work. null when its pending block. |
sha3Uncles | The SHA3 of the uncles data in the block. |
logsBloom | The bloom filter for the logs of the block. null when its pending block. |
transactionsRoot | The root of the transaction trie of the block. |
stateRoot | The root of the final state trie of the block. |
receiptsRoot | The root of the receipts trie of the block. |
miner | The address of the beneficiary to whom the mining rewards were given. |
difficulty | The integer of the difficulty for this block. |
totalDifficulty | The integer of the total difficulty of the chain until this block. |
extraData | The "extra data" field of this block. |
size | The integer the size of this block in bytes. |
gasLimit | The maximum gas allowed in this block. |
gasUsed | The total used gas by all transactions in this block. |
timestamp | The unix timestamp for when the block was collated. |
transactions | The array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter. |
uncles | The array of uncle hashes. |