Actions22
- Call Contract
- Estimate Gas
- Get Balance
- Get Block
- Get Block By Hash
- Get Block Number
- Get Block Transaction Count By Hash
- Get Block Transaction Count By Number
- Get Code
- Get Gas Price
- Get Logs
- Get Storage At
- Get Transaction
- Get Transaction By Block Hash And Index
- Get Transaction By Block Number And Index
- Get Transaction Count
- Get Transaction Receipt
- Get Uncle By Block Hash And Index
- Get Uncle By Block Number And Index
- Get Uncle Count By Block Hash
- Get Uncle Count By Block Number
- Send Raw Transaction
Get Uncle Count By Block Number
AI-generatedOverview
This node operation retrieves the number of uncle blocks (also known as ommer blocks) in a specific Ethereum block identified by its block number. It is useful for blockchain analysis, monitoring uncle block occurrences, and understanding block rewards distribution in Ethereum. For example, a user can input a block number to get how many uncle blocks were included in that block.
Use Case Examples
- Get the uncle count for block number '0x10d4f' to analyze uncle block frequency.
- Retrieve the uncle count for the latest block to monitor recent uncle blocks in the Ethereum network.
Properties
| Name | Meaning |
|---|---|
| Block Number | The block number (in hex format) or tag (latest, earliest, pending) for which to retrieve the uncle count. |
Output
JSON
blockNumber- The block number for which the uncle count was retrieved.uncleCount- The number of uncle blocks in the specified block (hex format).uncleCountDecimal- The number of uncle blocks in decimal format.metadatanetwork- The Ethereum network used (e.g., mainnet, rinkeby).operation- The operation performed, here 'getUncleCountByBlockNumber'.timestamp- Timestamp when the data was retrieved.infura_endpoint- The Infura API endpoint used for the request.raw_response- The raw response data from the Infura API.
Dependencies
- Infura API key credential with project ID and optional project secret for authentication.
Troubleshooting
- Ensure the block number is provided in a valid hex format or as a recognized tag ('latest', 'earliest', 'pending').
- Check that the Infura API credentials are correctly configured and have access to the specified Ethereum network.
- If the node throws an 'Unknown operation' error, verify that the operation parameter is correctly set to 'getUncleCountByBlockNumber'.
- Network connectivity issues to Infura endpoint can cause request failures; verify network access.
Links
- Infura Ethereum JSON-RPC API - eth_getUncleCountByBlockNumber - Official documentation for the JSON-RPC method used to get uncle count by block number.