eth_getUncleByBlockNumberAndIndex
Returns information about the 'Uncle' of a block by number and the Uncle index position.
Example
curl https://bsc-<network>.web3api.com/v1/YOUR-API-KEY
-X POST
-H "Content-Type: application/json"
-d "{\"jsonrpc\":\"2.0\",\"method\":\"eth_getUncleByBlockNumberAndIndex\",\"params\": [\"0x29c\",\"0x0\"],\"id\":1}"
curl -X POST 'https://bsc-<network>.web3api.com/v1/YOUR-API-KEY' \
-H 'Content-Type: application/json' \
--data-raw '{"jsonrpc":"2.0","method":"eth_getUncleByBlockHashAndIndex","params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35","0x0"],"id":1}'
BLOCK PARAMETER
- An int
block number in the form of hex, appended with 0x such as 0x6D7FE0
, or pre-defined strings latest
, earliest
, pending
.
UNCLE INDEX POSITION
- a hex of the integer representing the uncle's index position in the block, appended with 0x such as 0x0
.
Result Fields
BLOCK
- A block object, or null when no block was found with the hash specified.
Body
{
"jsonrpc":"2.0",
"id":1,
"result":"0x0"
}