eth_getUncleByBlockHashAndIndex¶
/v1/jsonrpc/:network/eth_getUncleByBlockHashAndIndex¶
Returns information about the 'Uncle' of a block by hash and the Uncle index position.
REQUEST¶
GET https://api.backbonecabal.xyz/v1/jsonrpc/:network/eth_getUncleByBlockHashAndIndex?params=:paramsJSONArray
HEADERS¶
Content-Type: application/json
REQUEST PARAMS¶
BLOCK HASH
[required] - a string representing the hash (32 bytes) of a blockUNCLE INDEX POSITION
[required] - a hex of the integer indicating the uncle's index position.
EXAMPLE¶
// HTTP GET
curl -G https://api.backbonecabal.xyz/v1/jsonrpc/mainnet/eth_getUncleByBlockHashAndIndex --data-urlencode 'params=["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35","0x0"]'
// HTTP POST
curl https://mainnet.backbonecabal.xyz/ \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getUncleByBlockHashAndIndex","params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35","0x0"],"id":1}'
// WEBSOCKETS
>wscat -c wss://mainnet.backbonecabal.xyz/ws
>{"jsonrpc":"2.0","method":"eth_getTransactionCount","params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f","latest"],"id":1}
RESPONSE¶
RESULT FIELDS¶
BLOCK
- A block object, or null when no block was foundnumber
: the block number. null when its pending block.hash
: 32 Bytes - hash of the block. null when its pending block.parentHash
: 32 Bytes - hash of the parent block.nonce
: 8 Bytes - hash of the generated proof-of-work. null when its pending block.sha3Uncles
: 32 Bytes - SHA3 of the uncles data in the block.logsBloom
: 256 Bytes - the bloom filter for the logs of the block. null when its pending block.transactionsRoot
: 32 Bytes - the root of the transaction trie of the block.stateRoot
: 32 Bytes - the root of the final state trie of the block.receiptsRoot
: 32 Bytes - the root of the receipts trie of the block.miner
: 20 Bytes - the address of the beneficiary to whom the mining rewards were given.difficulty
: integer of the difficulty for this block.totalDifficulty
: integer of the total difficulty of the chain until this block.extraData
: the "extra data" field of this block.size
: 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.uncles
: an Array of uncle hashes.
Note: An uncle doesn't contain individual transactions.
BODY¶
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"difficulty": "0xbfabcdbd93dda",
"extraData": "0x737061726b706f6f6c2d636e2d6e6f64652d3132",
"gasLimit": "0x79f39e",
"gasUsed": "0x79ccd3",
"hash": "0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35",
"logsBloom": "0x4848112002a2020aaa0812180045840210020005281600c80104264300080008000491220144461026015300100000128005018401002090a824a4150015410020140400d808440106689b29d0280b1005200007480ca950b15b010908814e01911000054202a020b05880b914642a0000300003010044044082075290283516be82504082003008c4d8d14462a8800c2990c88002a030140180036c220205201860402001014040180002006860810ec0a1100a14144148408118608200060461821802c081000042d0810104a8004510020211c088200420822a082040e10104c00d010064004c122692020c408a1aa2348020445403814002c800888208b1",
"miner": "0x5a0b54d5dc17e0aadc383d2db43b0a0d3e029c4c",
"mixHash": "0x3d1fdd16f15aeab72e7db1013b9f034ee33641d92f71c0736beab4e67d34c7a7",
"nonce": "0x4db7a1c01d8a8072",
"number": "0x5bad55",
"parentHash": "0x61a8ad530a8a43e3583f8ec163f773ad370329b2375d66433eb82f005e1d6202",
"receiptsRoot": "0x5eced534b3d84d3d732ddbc714f5fd51d98a941b28182b6efe6df3a0fe90004b",
"sha3Uncles": "0x8a562e7634774d3e3a36698ac4915e37fc84a2cd0044cb84fa5d80263d2af4f6",
"size": "0x41c7",
"stateRoot": "0xf5208fffa2ba5a3f3a2f64ebd5ca3d098978bedd75f335f56b705d8715ee2305",
"timestamp": "0x5b541449",
"totalDifficulty": "0x12ac11391a2f3872fcd",
"transactionsRoot": "0xf98631e290e88f58a46b7032f025969039aa9b5696498efc76baf436fa69b262",
"uncles": []
}
}