Blocks
uncleByHashAndIndex
Getting Started
Smart Contracts
API Libaries
- JavaScript Libraries
- Postman
API Playground
- JSON-RPC Overview
- Addresses
- Blocks
- Transactions
- Gas and Fee
- Txpool
- Debug
- Net
- Miner
- Other
- Conversion
Blocks
uncleByHashAndIndex
Returns the uncle block for a given block hash and index.
POST
curl --request POST \
--url https://rpc.quai.network/cyprus1/ \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "quai_getUncleByBlockHashAndIndex",
"params": [
"0x000000ceb1b398df1e8026b2a426b411f6cc9041f2f4356211a3c723a2f797d2",
"0x1"
],
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"difficulty": "0x4830bb629",
"headerHash": "0x668637e998e3d18e5f529c3dbfe084f57a4ca853812aa136e57153d5d81287ac",
"location": "0x0000",
"lock": "0x1",
"mixHash": "0x81c2449a5024c5ba098610f4de40390f87a36df9d92fd5568ef69291aa7b02dc",
"nonce": "0x36d54000031850e1",
"number": "0x2ed",
"parentHash": "0xfeee321190b340d980aa0c6a6216a396c9d0b387c69dd5e1385c3293b61b3386",
"primaryCoinbase": "0x0003e45Aa16163f2663015B6695894D918866D19",
"primeTerminusNumber": "0xa5",
"timestamp": "0x66fd8a4d",
"txHash": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"
},
"id": 1
}
Body
application/json
Response
200 - application/json
Successful response
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://rpc.quai.network/cyprus1/ \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "quai_getUncleByBlockHashAndIndex",
"params": [
"0x000000ceb1b398df1e8026b2a426b411f6cc9041f2f4356211a3c723a2f797d2",
"0x1"
],
"id": 1
}'
{
"jsonrpc": "2.0",
"result": {
"difficulty": "0x4830bb629",
"headerHash": "0x668637e998e3d18e5f529c3dbfe084f57a4ca853812aa136e57153d5d81287ac",
"location": "0x0000",
"lock": "0x1",
"mixHash": "0x81c2449a5024c5ba098610f4de40390f87a36df9d92fd5568ef69291aa7b02dc",
"nonce": "0x36d54000031850e1",
"number": "0x2ed",
"parentHash": "0xfeee321190b340d980aa0c6a6216a396c9d0b387c69dd5e1385c3293b61b3386",
"primaryCoinbase": "0x0003e45Aa16163f2663015B6695894D918866D19",
"primeTerminusNumber": "0xa5",
"timestamp": "0x66fd8a4d",
"txHash": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"
},
"id": 1
}