> For a complete page index, fetch https://docs.conduit.xyz/llms.txt # eth_getUncleByBlockNumberAndIndex POST https://rpc.plume.org/YOUR_API_KEY Content-Type: application/json Returns information about an uncle block by block number and uncle index position. Post-Merge note: Ethereum no longer produces uncle blocks since the Merge (September 2022). This method will always return null on Conduit chains and is retained for backwards compatibility only. ⚡ Compute Units: [10 CU](https://docs.conduit.xyz/rpc-nodes/information/compute-units) Reference: https://docs.conduit.xyz/rpc-nodes/json-rpc-reference/eth-get-uncle-by-block-number-and-index ## Request ### Body (application/json) This endpoint expects an object. - `blockIdentifier` (BlockNumberOrTag, required) — Block number, or one of "latest", "earliest", "pending", "finalized", "safe" - `uncleIndex` (string, required) — Integer of the uncle index position ## Response ### 200 Uncle block object, or null if the uncle doesn't exist - `parentHash` (string, required) — 32-byte hash of the parent block - `nonce` (string, required) — 8-byte value used in proof-of-work mining. On post-Merge chains (all Conduit rollups) this is always `"0x0000000000000000"` — the field is retained for header-shape backwards compatibility. - `sha3Uncles` (string, required) — SHA3 of the uncles data in the block - `logsBloom` (string, required) — Bloom filter for the logs of the block - `transactionsRoot` (string, required) — Root of the transaction trie - `stateRoot` (string, required) — Root of the final state trie - `receiptsRoot` (string, required) — Root of the receipts trie - `mixHash` (string, required) — 32-byte hash. Post-Merge this field carries the prevRandao value (the beacon chain randomness) rather than a proof-of-work mix hash. - `miner` (string, required) — 20-byte address of the beneficiary - `difficulty` (string, required) — Integer of the difficulty for this block - `extraData` (string, required) — Extra data field of this block - `size` (string, required) — Integer the size of this block in bytes - `gasLimit` (string, required) — Maximum gas allowed in this block - `gasUsed` (string, required) — Total gas used by all transactions in this block - `timestamp` (string, required) — Unix timestamp for when the block was collated - `transactions` (BlockTransactions, required) — Array of transaction objects or hashes - `uncles` (list of string, required) — Array of uncle hashes. Always empty on post-Merge chains (including all Conduit rollups), which no longer produce uncle blocks. - `number` (string, optional) — The block number, hex-encoded - `hash` (string, optional) — 32-byte block hash - `totalDifficulty` (string, optional) — Integer of the total difficulty of the chain until this block - `baseFeePerGas` (string, optional) — Base fee per gas in wei, hex-encoded. Introduced by EIP-1559 (London). Absent on pre-London blocks. - `withdrawals` (list of Withdrawal, optional) — Array of validator withdrawal objects. Introduced by EIP-4895 (Shanghai). Absent on pre-Shanghai blocks. - `withdrawalsRoot` (string, optional) — Root of the withdrawals trie. Introduced by EIP-4895 (Shanghai). Absent on pre-Shanghai blocks. - `blobGasUsed` (string, optional) — Total blob gas used by the transactions in this block, hex-encoded. Introduced by EIP-4844 (Cancun). Absent on pre-Cancun blocks. - `excessBlobGas` (string, optional) — Running total of blob gas consumed in excess of the target, used to compute the blob gas price, hex-encoded. Introduced by EIP-4844 (Cancun). Absent on pre-Cancun blocks. - `parentBeaconBlockRoot` (string, optional) — Parent beacon block root hash. Introduced by EIP-4788 (Cancun). Absent on pre-Cancun blocks. ## Types ### BlockNumberOrTag ### BlockTransactions Array of transaction objects or hashes ### Withdrawal A validator withdrawal object, as introduced by EIP-4895 (Shanghai) - `index` (string, required) — Monotonically increasing withdrawal index, hex-encoded - `validatorIndex` (string, required) — Index of the validator that generated the withdrawal, hex-encoded - `address` (string, required) — 20-byte recipient address for the withdrawn ether - `amount` (string, required) — Withdrawal amount in gwei, hex-encoded ## Examples **Request** ```json [ "latest", "0x0" ] ``` **SDK Code** ```python import requests url = "https://rpc.plume.org/YOUR_API_KEY" payload = ["latest", "0x0"] headers = {"Content-Type": "application/json"} response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript const url = 'https://rpc.plume.org/YOUR_API_KEY'; const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '["latest","0x0"]' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://rpc.plume.org/YOUR_API_KEY" payload := strings.NewReader("[\n \"latest\",\n \"0x0\"\n]") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://rpc.plume.org/YOUR_API_KEY") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Content-Type"] = 'application/json' request.body = "[\n \"latest\",\n \"0x0\"\n]" response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://rpc.plume.org/YOUR_API_KEY") .header("Content-Type", "application/json") .body("[\n \"latest\",\n \"0x0\"\n]") .asString(); ``` ```php request('POST', 'https://rpc.plume.org/YOUR_API_KEY', [ 'body' => '[ "latest", "0x0" ]', 'headers' => [ 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://rpc.plume.org/YOUR_API_KEY"); var request = new RestRequest(Method.POST); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "[\n \"latest\",\n \"0x0\"\n]", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = ["Content-Type": "application/json"] let parameters = ["latest", "0x0"] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://rpc.plume.org/YOUR_API_KEY")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```